This is the mail archive of the
mailing list for the GCC project.
Re: tree to rtl conversion optimizations
- From: Jim Wilson <wilson at specifixinc dot com>
- To: Johnny Huynh <huynh at ugrad dot cs dot ualberta dot ca>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 19 May 2004 16:19:34 -0700
- Subject: Re: tree to rtl conversion optimizations
- References: <Pine.GSO.email@example.com>
Johnny Huynh wrote:
Sorry if this sounds like a simple question, but I'm not too good at
tracing through all the source yet. During the conversion from tree to
RTL, there seems to be an optimizing step that determines whether
operands should be placed (-O0) in memory and accessed via an offset, or
(-O2) simply placed in registers.
See the optimize test in expand_decl in stmt.c.
The compiler should still work fine if you disable this, so that all
local variables end up in stack slots.
There might be other places in the code that are putting variables into
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com