Mail Archives: djgpp/1997/09/22/04:51:15
>
>
> In fact, altough ANSI C permits it, I'd advise against declaring *any*
> functions (even with constant argument lists) with shorts or floats as
> one of the arguments; I suggest to always use ints and doubles instead.
>
I didn't realise this, and to make sure my code was compatible between16-bit
and 32-bit (when using Borland), I never used int types to ensure that they
always were what they were meant to be. Luckily, I'll never have to worry
about it again in DJGPP :)
I heard a rumour somewhere (some internet page) that in a 32-bit compiler,
you should always use 32-bit ints instead of shorts because they don't have
to be "played with" so much in the registers (sorry, I didn't know how to
say that). Is this true and would it really give that much of a speed gain?
Brett
--
"Give me ambiguity or give me something else"
--
Brett Porter
bporter AT rabble DOT uow DOT edu DOT au
http://www.geocities.com/CollegePark/Union/3596
Humour, Programming, and more.
- Raw text -