Re: size of integer
- From: "Emmanuel Delahaye" <emdel@xxxxxxxxxxxxxx>
- Date: Tue, 02 Aug 2005 21:12:37 +0200
junky_fellow@xxxxxxxxxxx wrote on 02/08/05 :
How do we decide the value of INT_MIN and INT_MAX ? Does the compiler refers to this value to determine the size of int ?
Are these values always fixed for a specific platform and who decides these values ?
They are platform-dependent. The implementer decides in accordance with the features of the achitecture.
x86 real mode is 16-bit oriented x86 protected mode is 32-bit oriented 68000 is 32-bit oriented etc.
8051 is 8-bit oriented, that makes it a bad candidate for a C-implementation, but with the help of external libraries (and poor performances), implementations of C for 8051 exists (Keil etc.)
-- Emmanuel The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html The C-library: http://www.dinkumware.com/refxc.html
"It's specified. But anyone who writes code like that should be transmogrified into earthworms and fed to ducks." -- Chris Dollin CLC
.
- References:
- size of integer
- From: junky_fellow
- size of integer
- Prev by Date: Re: function without arithematic operator
- Next by Date: Re: deprecation of older C routines
- Previous by thread: Re: size of integer
- Next by thread: Re: size of integer
- Index(es):
Relevant Pages
|