GNU Autoconf, Automake, and Libtool
| The C language defines data types in terms of a minimum size, rather than an exact size . As of this writing, this mainly matters for the types The range of a 16 bit number is -32768 to 32767 for a signed number, or 0 to 65535 for an unsigned number. If a variable may hold numbers larger than 16 bits, use
Some books on C recommend using typedefs to specify types of particular sizes, and then adjusting those typedefs on specific systems. GNU Autotools supports this using the `AC_CHECK_SIZEOF' macro. However, while we agree with using typedefs for clarity, we do not recommend using them purely for portability. It is safest to rely only on the minimum size assumptions made by the C language, rather than to assume that a type of a specific size will always be available. Also, most C compilers will define |
This document was generated by Gary V. Vaughan on May, 24 2001 using texi2html
Категории