This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Any trick to avoid code bloat with tail call optimization?
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 04 Apr 2003 21:07:48 -0500 (EST)
- Subject: Any trick to avoid code bloat with tail call optimization?
Hi,
I have a question about the sibling/tail call optimization. How does
one avoid code bloat when a function 1) must restore several registers
in an epilogue and 2) has multiple tail calls within the function?
The tail call optimization is done quite early in the series of RTL
optimizations, so TARGET_FUNCTION_OK_FOR_SIBCALL does not know what an
epilogue will look like. Is there a convenient way to get the number
of tail calls within a function?
Thanks,
Kazu Hirata