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

Re: [MiNT] how to compile stik/sting stuff with gcc4



Henk Robbers wrote:
How does GCC behave?

GCC never pushes bytes on the stack.
char and shorts are extended to int before being pushed.

So if a function takes a char as first argument, in the callee it is located at 7(sp) by default (32-bit ints), or 5(sp) with -mshort (16-bit ints).

--
Vincent Rivière