This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Register-passed arguments copied to the stack?


Alexandre Courbot wrote:
But the callee makes something weird: at the beginning of the function, it copies all the arguments it received on the stack instead of directly using the register arguments.

There are a number of reasons why this might happen. Try stepping through the code in assign_parms in function.c to see why parameters get copied into either a pseudo or a stack slot.


Are you compiling with optimization? You didn't mention compilation options anywhere. If you are compiling unoptimized, then yes, the parameter are supposed to be copied into stack slots.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]