Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Speeding code

Author: Juan Manuel Vazquez

Date: 10:53:43 05/12/03

Go up one level in this thread


On May 12, 2003 at 13:02:46, Fermin Serrano wrote:

>I doubt that this run as you say. It is a possibility but I doubt. A compiler is
>a translator for normal languague to assambler and they would translate code "as
>is"

Not exactly, even with no optimizations, the compiler does not translate
sentence by sentence directly to assembly.

> I mean, where a call is done, a call must be translate (who is a compiler
>to take that kind of decisions? maybe a programmer would like to reduce the file
>size and not code speed, or are there any kind of compiler option to do this?)

Yes, there are optimizations levels to optimize speed, size or both. It deppends
on the compiler.

>Sorry if I haven't understood before, but It sound me so ilogic that it was
>difficult for me to imagine what you are explained now.
>
>On May 12, 2003 at 12:04:18, Uri Blass wrote:
>
>>On May 12, 2003 at 11:48:44, Fermin Serrano wrote:
>>
>>>What does "inline" exactly mean? I am spanish and don't know the meaning. I have
>>>look at it in my dictionary (bad dictionary as I have discovered) and have not
>>>found.
>>>thx
>>
>>I am from Israel and
>>my first language is also not english but it means that the compiler translates
>>function to no function.
>>
>>I did not look at the dictionary for this word but I can guess by the words in
>>and line that it means that the function is inside the code instead of being in
>>another place and the compiler replace every place that you have
>>eval_knight_position() to the code that is inside that function.
>>
>>Uri



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.