Mail Archives: djgpp/1999/08/11/22:53:27
> 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 (as of recently)
BUT *unspeficied variety* int in DJGPP is hardcoded to a long.
>
> 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.
>
and for kicks:
short float = 32 bit IEEE float always (no matter what type of FPU)
double (float) = 64 bit IEEE float always
long double (float) = 80 bit IEEE float always
float (unspecified) in DJGPP has a size that can be defined by context
or compiler flags, but if it has a choice, 64-bit.
moogla
- Raw text -