Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] Your top-ten linux desktop apps

On Thu, Sep 29, 2005 at 07:39:51PM +1000, O Plameras wrote:
> With C on 64-bit your number will not be a problem as an integer. C
> integer is size 8 bytes = 64 bits. So 2 exponent 64 less 1 can be
> handled.

This isn't correct; there are two main models for 64 bit computing.
LP64 where longs and pointers are 64 bits (Linux, most UNIX?) and the
Windows model where only pointers are 64 bits.  Many might suggest
this is because so much Windows code would break if long suddenly
became 64 bits, but I think the official reason is efficiency within
the API.

In both cases an int is 32 bits.  In both models a long long will be
64 bits, no matter what your architecture.  It's no wonder people use
Python/Perl/OCaml/Haskell/Smalltalk so they don't have to worry about
any of this.


Attachment: signature.asc
Description: Digital signature