home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
EFFO
/
forum7.lzh
/
RICO
/
C
/
CONFIG
/
config.doc
< prev
next >
Wrap
Text File
|
2009-11-06
|
1KB
|
28 lines
config - print details of your machine and C compiler configura-
tion config Config determines and prints out several properties
of the C compiler it is compiled with and the machine it is run
on. Among the properties it gives are
- the number of bits in a char, and whether chars are signed
or not;
- the maximum short, int, and long;
- alignment values for char, short, int and long;
- number of bits for char and int pointers, with a warning if
they are longer than int;
and then for float and double:
- the base used;
- number of significant digits;
- certain minumum and maximum values;
- whether arithmetic rounds or chops;
- whether a hidden bit is used or not;
- etc.
Finally the total amount of memory that can be allocated by mal-
loc(3) is printed. The output is printed as a series of C com-
ments, so that the program can be used to produce header files
for C programs without too much upheaval. The program won't work
if overflow causes a trap, and the trap can't be caught by sig-
nal(2).