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

Re: [MiNT] mshort support



Vincent Rivière skreiv:

libgcc contains support for the C language regarding to one CPU, when there is no direct assembly instruction for doing something.
The best example is probably multiplication.
What is the 68000 instruction for multiplying 2 shorts ? muls.
And for 2 longs ? There is none. Several 68000 instructions have to be used to achieve that. So gcc puts this kind of support code in private functions stored in libgcc.
Same things for manipulating floats.

Ok, I understand. I don't know these details about gcc. I see that libgcc is 85Kb on my system (gcc 2.95). Is this why helloworld.c results in a 102Kb binary?

Jo Even