[fpc-pascal] Speed

Daniël Mantione daniel.mantione at freepascal.org
Wed Oct 31 12:35:18 CET 2007

Op Wed, 31 Oct 2007, schreef Jilani Khaldi:

> > > I hear the Intel C compilers and Fortran compilers and Ada compilers
> > > are better
> > > optimized for certain things since FPC/delphi are generally desinged
> > > for GUI
> > > programming. ;-)
> > 
> > C/Fortran yes, Ada no; there exists no Intel Ada compiler.
> False. There's no speed penalty for writing in Ada vs C. They use the
> same Gnu compiler back-end, and thus the same assembler-level
> optimizations.

That is right, but the discussion is about using a certain language 
because there exists a very optimizing compiler for that language.

As there is no Intel compiler for Ada, and the Intel compilers provide 
superior performance than GCC, it is not logical to switch from Pascal 
to Ada if Pascal isn't fast enough for you.

Further, it is unknown how well the GCC backend optimizes Ada language 
constructs as it is primarily designed for the C language. This problem is 
at least present in the GNU Fortran compiler; while GCC gives very 
reasonable performance for C code, the code from the Fortran compiler is 


More information about the fpc-pascal mailing list