Turning on optimizations borg my programs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux