[fpc-pascal] FPC Graphics options?

Jonas Maebe jonas at freepascal.org
Sun May 21 13:37:31 CEST 2017


On 21/05/17 10:35, Florian Klämpfl wrote:
> Am 20.05.2017 um 23:15 schrieb Sven Barth via fpc-pascal:
>> At least if the compiler also recognizes that oy and oz are constant...
> 
> If the typed constants are declared as read only, we could treat them as real constants. Maybe at
> least in -O4 mode?

They're plain local variables that are assigned once and never changed. 
That said, simply treating them (and floor(oy)/floor(oz)) as constants 
does not improve the generated code very much. There's probably another 
similar thing that causes a large part to be simplified/evaluated away 
in the C version.


Jonas



More information about the fpc-pascal mailing list