Builtin: stack pointer
Andreas Schwab
schwab@suse.de
Thu Mar 27 10:29:00 GMT 2014
Renato Golin <renato.golin@linaro.org> writes:
> On 27 March 2014 10:12, Andreas Schwab <schwab@suse.de> wrote:
>> Can't you use __builtin_frame_address (0) instead?
>
> That would give me the frame pointer, not the stack pointer, and the
> user would have to calculate manually the offset to get the actual
> stack pointer, which would be target-specific, possibly making it even
> worse. Is that what you meant?
Depends on what you need the value for.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Gcc
mailing list