- Hymie
...{decvax,ihnp4,ucbvax}!allegra!phri!orville!dvm!hymie
The compiler generates a routine to call all of the static constructors
within each individual source file. These routines have special names
and are placed in the .o file. When the .o files are linked together,
the names of the constructors (and destructors) are extracted and
called from a routine created (sort of) at link time. It is this created
routine that is called before main(). Because this model doesn't fit with
the standard compiler and linker model, the details are kind of ugly.
--
Lawrence Crowl 716-275-5766 University of Rochester
cr...@rochester.arpa Computer Science Department
...!{allegra,decvax,seismo}!rochester!crowl Rochester, New York, 14627