help-gplusplus
[Top][All Lists]
Advanced

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

Re: rax cleared before fnc call on x86_64


From: Johannes Bauer
Subject: Re: rax cleared before fnc call on x86_64
Date: Fri, 14 Aug 2009 13:11:15 +0200
User-agent: Thunderbird 2.0.0.14 (X11/20080502)

Hi group,

since no reply came in the g++.help group, maybe someone on gcc.help knows why this is happening? Fullquote attached & fup2 gnu.gcc.help.

Kind regards,
Johannes

Johannes Bauer wrote:
Hello group,

I'm using gcc to hack some low-level stuff - until recently I was
developing on x86_32 (i686), but now I switched  to x86-64. As the
calling convention is different obviously I had to change large portions
of my code. Something was weird, however:

When calling functions, gcc always emits code to clear %rax before the
call is made. Is this some kind of calling convention I'm not aware of?
Can I specify a certain function attribute to stop gcc from emitting
that clearing beforehand?

Kind regards,
Johannes


reply via email to

[Prev in Thread] Current Thread [Next in Thread]