[NTLUG:Discuss] OT C question
steve
sjbaker1 at airmail.net
Sat Feb 18 13:38:35 CST 2006
Greg Edwards wrote:
> OBTW, type size is determined by compiler not processor.
This is definitely true - and not just in theory.
Back in the days of Z80's and CP/M, we had two C compilers for
the Z80 at work. One used 16 bit 'int' and the other had
32 bit 'int' - on the same CPU and using the same operating
system.
We had C code from other computers that REQUIRED 32 bit int's,
yet for the more performance-critical parts of our system,
16 bit int's were 10x faster...so we compiled some code with
one compiler and some with the other.
If you suspect that this was a recepie for disaster - then
you are entirely correct!
More information about the Discuss
mailing list