Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2007-01

Coding conventions and optimization

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Daniël Mantione
to ik

Op Sat, 13 Jan 2007, schreef ik:

Show quoted text 6 lines
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.

Daniël

Reply by email