Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Oct 1999 13:24:20 -0600
From:      Nate Williams <nate@mt.sri.com>
To:        jin@george.lbl.gov
Cc:        freebsd-bugs@FreeBSD.ORG, sheldonh@uunet.co.za
Subject:   'sizeof' C storage (was Re: bin/14472: date for Y#K)
Message-ID:  <199910291924.NAA05750@mt.sri.com>
In-Reply-To: <199910291918.MAA24925@george.lbl.gov>
References:  <199910291918.MAA24925@george.lbl.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
> "long" seems to be a bad type definition in C program since it is not in
> a fixed variable size. I will not use it at a critical segment.

No variable types are 'fixed' in C.  On Win32, int is 32 bits, on Alpha
it's 64 bit.  The only thing you can rely on is that short <= int <=
long.  The relative sizes are unknown, unless you limit your code to a
certain hardware/software platform of known release.

The only popular language that fixes it's types is Java that I'm aware
of.



Nate


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910291924.NAA05750>