16-bit int

David Brown david.brown@hesbynett.no
Thu Aug 9 19:59:00 GMT 2012


On 09/08/12 20:52, Vincent Lefevre wrote:
> On 2012-08-09 15:37:05 +0200, David Brown wrote:
>> The size of an int depends on the target - gcc supports dozens of targets.
>> Most have 32-bit ints, but some have 16-bit ints and at least one has a
>> compile-time option to support 8-bit ints (though that goes against C
>> standards, and is deprecated on current builds).  There are probably also
>> targets with 64-bit ints.
>
> Couldn't the list of supported targets, with type size and other
> similar information, be available on some web page?
>

There is probably some list in the gcc internals documents, and of 
course you could see it in the source configuration files if you want to 
go there.  But you can get a fair idea from the manual on the 
target-specific options, as every target will have a few options of 
their own:

<http://gcc.gnu.org/onlinedocs/gcc/Submodel-Options.html>

This doesn't list the sizes of int or other target-specific information. 
  However, usually you know what target processor you are going to use, 
and usually you know the basic size of the processor (if not, then you 
really should find out before starting to use it!).

There are also a number of out-of-tree gcc ports.




More information about the Gcc-help mailing list