S
siliconwafer
Who decides size of data types in C?
Is it the:
1.C standard and hence the compilers
2.Operating System.
Is it the:
1.C standard and hence the compilers
2.Operating System.
siliconwafer said:Who decides size of data types in C?
Is it the:
1.C standard and hence the compilers
2.Operating System.
Which H/W *exactly* decides this?Is it the data width of memory wherewhat about the Hardware...Doesn't it maily rely on that...?
coz if the H/w is capable then only...the implementation is useful...?
right..?
Nothing stops you writing a C compiler for Linux that provides 17-bit
ints and 18 bit pointers, but you won't sell many.
(e-mail address removed) (Richard Tobin) writes:
If by "17-bit ints" you mean, say, 18-bit ints with 1 padding bit,
that's true, as long as CHAR_BIT is either 9 or 18.
[/QUOTE]Nothing stops you writing a C compiler for Linux that provides 17-bit
ints and 18 bit pointers, but you won't sell many.
If by "17-bit ints" you mean, say, 18-bit ints with 1 padding bit,
that's true, as long as CHAR_BIT is either 9 or 18.
Some of my co-workers are modelling the spread of infectious diseases.
(Seriously so.) As best I can tell, the same techniques can be used to
model the spread of Linux.
"what about the Hardware...Doesn't it maily rely on that...? "
Which H/W *exactly* decides this?Is it the data width of memory where
the compiler stores the variables? OR is it the CPU regesters?
Reply
MyAnswer?
Who decides size of data types in C?
Is it the:
1.C standard and hence the compilers
2.Operating System.
Walter said:But it's *Linux*, so you aren't going to -sell- many of *anything*
(discounting the "Linux for Dummies" books and the Slashdot
merchandise.)
Arguable.
Some of my co-workers are modelling the spread of infectious diseases.
(Seriously so.) As best I can tell, the same techniques can be
used to model the spread of Linux.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.