Mail Archives: djgpp/1999/08/11/23:14:18
Chris Holmes wrote:
>
> Most protected mode compilers compile based on a 32 bit integer.
> DJGPP does this.
> For anyone who doesn't already know this (it is pretty common
> knowledge), in DJGPP:
> char = 1 byte
> short = 2 bytes
> int = 4 bytes
> long = 8 bytes
Sigh, sigh, sigh. No!
char = 1 byte always
short = 2 byte always
long = 4 byte always
long long = 8 byte always
DJGPP has harcoded it's unspecified generic garden variety of int to a
long (good move, for 32-bit protected mode... :} )
> And please don't ask about the time I took a new way to do fixed
> point math to a CS professor who thought it was brilliant and he sent
> me to a Computer Engineering prof who said, "Yes, congrats, you just
> rediscovered floating point." That was a bad day.
>
> Chris
and just for kicks, with no matter what architecture you're dealing
with:
short float = 32-bit IEEE float
double (float) = 64-bit IEEE float
long double (float) = 80-bit IEEE float
float (generic) in DJGPP can change depending on context or compiler
flags, but if it has a choice, it's the 64-bit variety.
moogla
- Raw text -