[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Support for Meta-Programming
Mike Griebling <grieblm@trt.allied.com> writes:
> > > One would need to guarantee that variables are not optimized away.
> > > In other words, all variable optimizations would have to be disabled
> > > and all variables stored on the stack. A debug flag should be enough
> > > to do this. I'm not sure how much OOC depends internally on variables
> > > being in registers.
> >
> > This is not possible. On GSA level there is no information about the
> > local variables of scalar type as declared in the source code. Data
> > flow through these variables is completely unravelled. Normally any
> > assignments (in the source) to these variables have no effect on
> > memory (in the program). Only for per reference argument passing (and
> > nonlocal access from nested procedures) local scalar variables are
> > kept in memory at all.
> >
> > Note that this is not an optimization issue. This happens even if all
> > optimizations are turned off.
>
> That's what I though you would say. Would you be able to force them
> into local stack variables by taking an address of each of the
> variables?
No.
-- mva