[LLVMdev] Nested functions
Vikram S. Adve
vadve at cs.uiuc.edu
Mon Nov 22 11:15:15 PST 2004
On Nov 22, 2004, at 12:34 PM, Vladimir Merzliakov wrote:
>> As an optimization for shallow nested functions (e.g., 3 levels or
>> less), it seems to me you could just avoid the stack walking entirely
>> and add $k-1$ arguments to each function at level $k$, i.e., at most
>> 2 arguments in all. This may even be an easy first implementation.
>
> I use this method with filtering unused in nested function args and
> local vars
> in my YAFL frontend (not finished :(( - at this moment generate LLVM
> bytecode but doesn't have all runtime suport code writed)
So do you mean you pass static links for parent function stack frames
as arguments? How do you generate them?
--Vikram
http://www.cs.uiuc.edu/~vadve
http://llvm.cs.uiuc.edu/
More information about the llvm-dev
mailing list