This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Register-passed arguments copied to the stack?
- From: Jim Wilson <wilson at tuliptree dot org>
- To: Alexandre Courbot <Alexandre dot Courbot at lifl dot fr>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 22 Aug 2003 11:32:18 -0700
- Subject: Re: Register-passed arguments copied to the stack?
- References: <200308221127.29198.Alexandre.Courbot@lifl.fr>
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