C compiler for pdp-11 under RSX
Andrew Klossner
andrew at orca.UUCP
Wed Jun 6 05:47:17 AEST 1984
"I believe they [Whitesmiths] may also be removing the
requirement that all extern storage definitions (not
declarations) be initialized exactly once among all load
modules."
They can't. Remember that Whitesmiths' original claim to fame was in
providing C compilers for a great many machines running operating
systems other than Unix.
On many systems, the loader doesn't speak COMMON blocks and requires
that a single module (file) EXPORT a symbol and that all other modules
IMPORT it. When compiling C code a file at a time, there is no way to
do this with the existing language definition.
The language mod allows a global symbol to be EXPORTed when
initialized, IMPORTed when not initialized. I can't think of a
language change which is much less painful and which will satisfy this
class of linkers.
-- Andrew Klossner (decvax!tektronix!orca!andrew) [UUCP]
(orca!andrew.tektronix at rand-relay) [ARPA]
More information about the Comp.lang.c
mailing list