linux-mips
[Top] [All Lists]

Re: Saving arguments on the stack

To: "Knittel, Brian" <Brian.Knittel@powertv.com>
Subject: Re: Saving arguments on the stack
From: "Kevin D. Kissell" <kevink@mips.com>
Date: Tue, 22 Nov 2005 09:53:10 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <762C0A863A7674478671627FEAF5848105AF92D2@hqmail01.powertv.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <762C0A863A7674478671627FEAF5848105AF92D2@hqmail01.powertv.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050716)
Knittel, Brian wrote:
Hi,

I'd like to force the compiler to store arguments on the stack with otherwise 
optimized code.

I found a refernce in the archives (form 2001) for using -0 (no optimization). 
Has anyone found another way to do this?

If I recall correctly, if you specify -g to enable debugger support,
the subroutine prologues store the arguments into their stack slots,
even if a higher level of optimization is otherwise specified.

                Regards,

                Kevin K.

<Prev in Thread] Current Thread [Next in Thread>