Re: Trampoline implementation for MIPS

2006-09-29 Thread Ian Lance Taylor
"kernel coder" <[EMAIL PROTECTED]> writes: > 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 a

Trampoline implementation for MIPS

2006-09-29 Thread kernel coder
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);