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

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



Vincent Rivière wrote:
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).


Thanks.
In that case I will not change AHCC in this respect.

Note that AHCC and Pure C put the first 3 integral arguments in data registers.

--
Groeten; Regards.
Henk Robbers. http://members.chello.nl/h.robbers
Interactive disassembler: TT-Digger;  http://digger.atari.org
A Home Cooked C compiler:      AHCC;  http://ahcc.atari.org