This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Trampoline implementation for MIPS
- From: Andrew Haley <aph at redhat dot com>
- To: "kernel coder" <lhrkernelcoder at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 29 Sep 2006 09:17:33 +0100
- Subject: Re: Trampoline implementation for MIPS
- References: <f69849430609290015y3d236574s853f7f17d6eda9c1@mail.gmail.com>
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.