On Wed, 2008-05-21 at 15:33 -0400, Marc Feeley wrote:
On 20-May-08, at 12:35 PM, Joel J. Adamson wrote:
The executable program can then be built with:
% gcc -DHAVE_CONFIG_H -fno-strict-aliasing *.c -o myprogram.exe
You need
% gcc -DHAVE_CONFIG_H -fno-strict-aliasing -fwrapv *.c -o myprogram.exe
for correctness.
You can add a mix of the following C compiler options to optimize the program:
-O1 -D___SINGLE_HOST -fomit-frame-pointer
The following help a lot, too (and the first and third are really cheap):
-fno-math-errno -fschedule-insns2 -fno-trapping-math
Brad