Jump to content
Sign in to follow this  
SnakeByte

Ansi Standard Questions...

Recommended Posts

Exactly which standard will the BoostC compiler be based on? I've noticed there are a few standards for C, the latest, I believe, to be C99.

 

One problem I see looming is the size of the built-in types... depending on the platform, an int can be 16 bits, or 32 bits.. same goes with the others... how long is a long? The C9X standard includes some header files that typedef the built-in types to include the bits as part of the name... so instead of int we'd use INT16... There are some other nice additions that I'd like to see included too, if possible.

 

Here's a web site that does a nice job of listing some of the improvements:

http://home.tiscalinet.ch/t_wolf/tw/c/c9x_changes.html

Share this post


Link to post
Share on other sites
Guest Joe

As i see it,

 

char = 1 byte

short = 2 bytes

long = 4 bytes

double = 8 bytes (signed only)

 

 

I think this is fairly standard accross all compilers.

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...