Search found 2 matches

by Luzarius
Thu Jun 29, 2006 9:44 am
Forum: PS2 Development
Topic: EE-GCC and EE-G++ caling conventions
Replies: 3
Views: 2310

Cool thanks. Also i should ask if these compilers follow the convention of not messing with registers $s0-$s7 or at least restoring them before returning to the caller.
by Luzarius
Thu Jun 29, 2006 9:33 am
Forum: PS2 Development
Topic: EE-GCC and EE-G++ caling conventions
Replies: 3
Views: 2310

EE-GCC and EE-G++ caling conventions

I want to call c++ or c functions compiled with e-gcc or e-g++ from my assembly code but i am not sure how the compilers handle passing of arguments and return values. Do they use the stack or registers $a0-$a3 and $v0-$v1 ? a simple test program compiled with the -S assembly source option showed th...