Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gcc size of types

Tags:

c

gcc

portability

As the size of the types is not close in the standars of C, if not that there are a maximum and minimum size for them, I would like to know where I can find how gcc interpret this.

Where is in gcc documentation the size of the types they will take? Is there specify? I can not find that information, so i would like a few of help with it.

Thanks in advance.

--- Conclusions ---

Looking into all your comments, I finally get the information in this links to argue the answer

5.2.4.2.1 Sizes of integer types : http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1336.pdf

http://gcc.gnu.org/onlinedocs/gccint/Type-Layout.html

like image 331
romi Avatar asked Oct 20 '25 04:10

romi


1 Answers

It's not in the GCC documentation per se, but rather in the ABI documentation for each target system. E.g. for Linux x86_64 the ABI document is in a Gitlab x86 psABIs project.

Details of each ABI that GCC supports are coded in the GCC sources, see e.g. chapter 17 in the GCC internals manual at http://gcc.gnu.org/onlinedocs/gccint/Target-Macros.html

like image 78
janneb Avatar answered Oct 21 '25 18:10

janneb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!