Optimization via Preprocessor?
Robert Dewar
dewar@gnat.com
Sat Oct 7 06:59:00 GMT 2000
<< The equivalent of the -O2 via any mechanism in the code such that
a make <filename> will produce the optimized executable.
>>
There is as far as I know, no facility for this. We faced this problem in
Ada which has a language construct (pragma Optimize) for this purpose, but
we could not implement it properly (all it does is check that optimization
was specified on the command line). My understanding of the problem is
that it is too late to specify optimization by the time the language
processed processes the program.
Anyway, I note that Ada adds a second request for this feature :-)
Robert Dewar
More information about the Gcc
mailing list