Turning on optimizations borg my programs
M.C.A. (Marco) Devillers
marco.devillers@gmail.com
Fri Jul 9 12:49:00 GMT 2010
Hi all,
I am writing a compiler and it seems to work somewhat. I use C as my
target assembly language.
Now I get working programs if I just compile them, but my programs
borg after I compile them with -03.
The compiled programs are too big too publish here, but I wonder if
anyone has any clue on how to debug this? I do some hefty pointer
arithmetic on (sometimes static) arrays of integers and make a lot of
libffi calls. It may be that the pointer arithmetic is uncleanly
defined/optimized away?
How can I test this? What compiler switches should I try first?
Thanks all,
Marco
More information about the Gcc-help
mailing list