Re: gcc-4.9.2: Assembly for i386 Target

2015-10-13 Thread Abhishek Aggarwal
t wrt to the new frame pointer of the 'main' function. Is it acceptable from ABI point of view? On Mon, Oct 12, 2015 at 1:22 PM, Stefan Ring wrote: > On Mon, Oct 12, 2015 at 1:06 PM, Abhishek Aggarwal > wrote: >> @Jonathan: The reason I started this discussion is due to m

Re: gcc-4.9.2: Assembly for i386 Target

2015-10-12 Thread Abhishek Aggarwal
n for 'main' function but for some function called from inside main ( 'printf' in this case), then it should have been done for x86_64 case also. Please mention if I am missing anything here. Thanks On Mon, Oct 12, 2015 at 1:05 PM, Abhishek Aggarwal wrote: >

gcc-4.9.2: Assembly for i386 Target

2015-10-12 Thread Abhishek Aggarwal
Hi all I was trying to compile the following code with gcc 4.9.2 on Ubuntu 14.04 x86_64 platform: /* File a.cpp */ #include int main (int argc, const char *argv[]) { printf("Hello World!\n"); return 0; } Compilation commands are: g++-4.9.2 -std=c++11 -g -O0 -fno-builtin -m32 a.cpp I was t