64 bit architectures and C/C++
Doug Gwyn
gwyn at smoke.brl.mil
Fri May 3 06:08:43 AEST 1991
In article <1991May2.033545.15051 at athena.mit.edu> jfc at athena.mit.edu (John F Carr) writes:
-In article <16023 at smoke.brl.mil> gwyn at smoke.brl.mil (Doug Gwyn) writes:
->Note that a standard-conforming implementation is obliged to diagnose
->use of any construct such as "long long". Therefore that is a stupid
->extension.
-I disagree. I want a compiler that supports ANSI features, but I would
-rather have "long long" cause the compiler to generate 64 bit code than
-cause the compiler to say "error: invalid type". I think the C standard is
-valuable because it is a list of what is valid C, not because it also says
-what is not valid C.
I think you missed the point. There are numerous CONFORMING ways in
which additional integer types can be added to C. "long long" is NOT
one of these, and a standard-conforming implementation is OBLIGED to
diagnose the use of "long long", which violates the Constraints of
X3.159-1989 section 3.5.2. Therefore "long long" is not a wise way
to make such an extension.
More information about the Comp.lang.c
mailing list