[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] 64 Bit integer in linux



On Mon, Nov 22, 1999 at 01:34:22PM +0530, Raju wrote:
> Hi Prasad,
> 	Here's a summary on the sizes of the various data types
> under Linux...
> 

You should probably say ix86 Linux. On Alpha Linux and IA-64 Linux,
these numbers are different.

Also, these are not a property of the OS alone. It is a combination
of the compiler and the OS.

Specifically, you can have a different compiler which uses a
different data model that runs on ix86 Linux. Also, the same compiler
can generate different code, based on a command line switch.

In other words, assuming things about sizes of various data types is
bad programming. That is why the sizeof operator exists.

	-Arun

--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.