On 09.06.2011 20:02, Paul Römer wrote: > Hi, > > What happens if you compile only with -fomit-frame-pointer? I'm not sure > if it will be activated without adding an -Ox option. Can you add an > example code? impulze@istari ~ $ gcc-4.4 -S -fomit-frame-pointer test.c && grep -m1 lea test.s lea 12(%esp), %edi impulze@istari ~ $ gcc-4.5 -S -fomit-frame-pointer test.c && grep -m1 lea test.s lea 12(%esp), %edi impulze@istari ~ $ gcc-4.6 -S -fomit-frame-pointer test.c && grep -m1 lea test.s lea 12(%esp), %edi impulze@istari ~ $ cat test.c void f() { int i; __asm__ __volatile__("lea %0, %%edi\n"::"m"(i):"%esp"); } > What gcc you use? 4.4.5, 4.5.2, 4.6.0 -- Mierswa, Daniel If you still don't like it, that's ok: that's why I'm boss. I simply know better than you do. --- Linus Torvalds, comp.os.linux.advocacy, 1996/07/22