[comp.archives] [comp.sources.misc] v15i095: enquire.c v4.3, Everything you wanted to know about your C compiler

steven@cwi.nl (Steven Pemberton) (01/03/91)

Archive-name: languages/c/enquire/1990-12-16
Archive: mcsun.eu.net:/misc/enquire43.c [192.16.202.1]
Original-posting-by: steven@cwi.nl (Steven Pemberton)
Original-subject: v15i095: enquire.c v4.3, Everything you wanted to know about your C compiler (and more)
Reposted-by: emv@ox.com (Edward Vielmetti)

Posting-number: Volume 15, Issue 95
Submitted-by: steven@cwi.nl (Steven Pemberton)
Archive-name: enquire-4.3/part01

Enquire.c (which used to be called config.c) is a program that
determines many properties of the C compiler and machine that it is
run on, such as minimum and maximum [un]signed char/int/long, many
properties of float/ [long] double, and so on.

As an option it produces the ANSI C float.h and limits.h files.

As a further option, it even checks that the compiler reads the header
files correctly.

It is a good test-case for compilers, since it exercises them with
many limiting values, such as the ability to handle the minimum and
maximum floating-point numbers.

Version 4.3 of enquire.c has been submitted to comp.sources.misc, and
will appear as part of the gcc distribution (where it is used to
generate float.h); it is also available by anonymous ftp from
mcsun.eu.net and hp4nl.nluug.nl as misc/enquire43.c, and by mail from
info-server@hp4nl.nluug.nl by sending a mail message:

	request: misc
	topic: enquire43.c

Steven Pemberton, CWI, Amsterdam; steven@cwi.nl
"Let us go then you and I/while the night is laid out against the sky/like a
					smear of mustard on an old pork pie"
Nice poem Tom. I have ideas for changes though, why not come over? - Ezra

-------------- CUT HERE -----------------
[2700 lines of the actual source removed here.  --Ed.]