gcc-4.9.2: Assembly for i386 Target
Andrew Haley
aph@redhat.com
Tue Oct 13 09:33:00 GMT 2015
On 13/10/15 08:55, Abhishek Aggarwal wrote:
> The return address of the calling function is still at +4 byte offset
> wrt to new frame pointer (%ebp) of 'main' function. However, now the
> first argument of 'main' function may not be at +8 byte offset wrt to
> the new frame pointer of the 'main' function.
>
> Is it acceptable from ABI point of view?
Yes, as long as the generated code for main gets its first argument
from the correct place.
Andrew.
More information about the Gcc
mailing list