Re: varargs target handling

2009-05-11 Thread Jim Wilson
Iceman wrote: Question. Am I doing it wrong? If yes, what are my best options to tackle this problem? If not, how can I implement the logic above in practical terms? Thank you, stdarg (varargs is obsolete by the way) can be done this way. There are a number of examples you can look at. See

varargs target handling

2009-05-08 Thread Iceman
Hi! I'm porting GCC to a software VM with 32 32bit registers, and 32 64bit registers. The 64bit registers are used for DI, SF and DF mode. Pointers and QI, HI and SI modes are handled with 32bit registers. The first 8 32bit parameters of functions are passed into the first 8 32bit registers (g0.