This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
does gcc remember register values through into functions?
- From: Lin Gu <lingushanghai at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 14 Jan 2005 23:28:18 -0500
- Subject: does gcc remember register values through into functions?
- Reply-to: Lin Gu <lingushanghai at gmail dot com>
Hi,
In gcc's optimization process (O3), does it remember register
values through the function calls when the function
call is not inlined?
My guess is that gcc does not assume specific values in
any registers, except for registers that carry parameters
and serve as stack pointer, when it enters a function. But
I hope to be sure about this. Any hints and suggestions
would be appreciated.
Cheers,
lin
--
Lin Gu
University of Virginia