Re: newbie question about integers size/portabilty.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Ribamar Santarosa de Sousa wrote:
Hi all,
in the c style guide:
http://www.psgd.org/paul/docs/cstyle/cstyle16.htm
we can found a table (shown bellow) for integer data sizes. there we can se that some architecture have more than one possible value for the same size, depending on -- i guess -- the compiler.
Does anyone know where i can get a accurate table for gcc compiler?



sizeof would help you.


Can those values change from a processor in the x86 to another with
fixed-size word (e.g. 486 -> 586)? (The document provides a "safe
minimal size" table, but note, as i am mixing several integer types
to pass to a hardware data structure, this is not enough, i need
exact values).

http://www.linuxdevices.com/articles/AT5340618290.html

Naoya

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux