[fpc-devel] Coding conventions and optimization

Daniël Mantione daniel.mantione at freepascal.org
Sat Jan 13 18:58:49 CET 2007

Op Sat, 13 Jan 2007, schreef ik:

> Hi,
> Recently I read somewhere that languages such as Java optimize better
> when you write your code in specific convention.
> Is that also apply for FPC and/or other Pascal compilers as well ?

As compilers cannot be perfect, there will always be situations that 
reordering your code will result in better performance. For FPC, it helps 
for example to keep your procedures short. You can also try to write code 
that will trigger FPC's esp as frame pointer optimizations etc.


More information about the fpc-devel mailing list