Code: Select all
#define identifier hexadecimal_number
Using the time utility I get a total time of execution (time fbc -g -R filename.bas) of 0.4 seconds (using msys on win32).
When using the gcc back end things are different. Again the compiler reports 0.2 seconds as total compilation time.
The time it takes to generate a binary is much longer. I get a total time of execution (time fbc -gen gcc -R -g) of 20 seconds.
Which is nowhere near the 0.2 seconds it takes to turn the fb code into C code (and much slower than what I get when
using the assembler back end).
If I use -gen gcc without the option -g performance is much, much better (about the same as I get when using the asm back end).
I am using
I don't think the c back end is causing the slow compilation times (generating the C code does not take all that long) so the problem must be with mingw.fbc version 0.90.1 on win32 (os: win7 64bit pro)
gcc version 3.4.5 (mingw-vista special r3).
Could someone verify that compilation takes less time when using a newer version of mingw (or when using gcc on Linux)?
fbc command line options to use: -gen gcc -g -R
Source code (file consisting of many a macro definition) can be downloaded from
http://www.sarmardar.nl/FreeBASIC/unicodedata.bas