This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-4.9.2: Assembly for i386 Target
- From: Andrew Haley <aph at redhat dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 13 Oct 2015 10:33:02 +0100
- Subject: Re: gcc-4.9.2: Assembly for i386 Target
- Authentication-results: sourceware.org; auth=none
- References: <CAGy+Z4jBeMpFEJ6qmPtHbK9c1sbNvhJcNKS=ARcikgSBhHLzvg at mail dot gmail dot com> <CAH6eHdRY+XxKxZ3JBPcgohQB1W4MaP1e3H6gmYD-2JMCJxAwPQ at mail dot gmail dot com> <CAGy+Z4gtx6Y2Oibp9TQr3FQ+9Go8PrrhzPORcpNDJhocZgGjVA at mail dot gmail dot com> <CAGy+Z4gy853bjecTVaKad19bCB3UmSe+qO1XZcaPG26hy0gGhw at mail dot gmail dot com> <CAGy+Z4j=AYJPHzKjBPsVhun4-YUSkz5AeMrubQxyRoAzuo0uDA at mail dot gmail dot com> <CAAxjCExKzjPurVWo3vHTu9mtpsDi8S5yFKDp4hMdrciPaOUtKQ at mail dot gmail dot com> <CAGy+Z4jkUan=_ZuMEuShTUZXSc5qsi+_0uB_yW1cEzZ42QJJbg at mail dot gmail dot com>
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.