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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to