Fedora 9 32 or 64 Bit - Which One?

Björn Persson bjorn at xn--rombobjrn-67a.se
Fri Oct 31 22:09:45 UTC 2008


stan wrote:
> Jerry Feldman wrote:
> > very poorly written, It's just that simple. From a developer standpoint,
> > developing a portable application, eg. one that can be compiled for
> > 32-bit or 64-bit and work out of the box is relatively simple if you
> > follow some rules. The newer C and C++ language standards also have
> > specific 32-bit and 64-bit integers, so you don't have to use "long"
> > which can be 32-bits or 64-bits. I remember the same issue with 16-bit
>
> Would you be willing to point to those 'relatively simple'
> techniques with a link?

No link needed. Just don't make baseless assumptions about sizes of data 
types. Don't assume that a pointer is the same size as an int for example, or 
that the number 5000000000 will fit in a long int. Use uint32_t if you need a 
32-bit number and so on. It's just that simple.

Even better, avoid C and use a better designed language with a good type 
system.

Björn Persson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20081031/55afb676/attachment-0001.sig>


More information about the fedora-list mailing list