Re: Trampoline implementation for MIPS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



kernel coder writes:
 > hi,
 >     I'm having some trouble while understanding the generated assembly
 > code for trampoline by mips back-end.
 > 
 > Following is the code for which i'm trying to undertsand the generated
 > trampoline code.
 > 
 > int foo(int (*f)()){
 >         (*f)();
 > }
 > main(){
 >         int i;
 >         int g(){printf("hello,%d",i);}
 >         foo(g);
 > }
 > 
 > Parts of generated assembly code which are confusing are
 > 

That looks like all of it!  The trouble is that we don't know what
you don't know.  Firstly, did you read
http://people.debian.org/~aaronl/Usenix88-lexic.pdf

I have redirected this reply to gcc-help.

Andrew.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux