Microsoft C specific question about __acrtused

Walter Bright bright at nazgul.UUCP
Thu Oct 25 11:34:46 AEST 1990


In article <681 at digigw.digital.co.jp> gday at digigw.digital.co.jp (Gordon Day) writes:
<I have been mixing assembly language and C routines successfully, but when
<setting up the runtime environment for C subroutines I have to define the
<symbol __acrtused in the DGROUP group to keep the linker happy.  What is 
<significance of this value? What should it be set to, or does it really 
<matter? (My belief is that it is only of significance if the crt0.obj startup
<are being used, but in that case, why is it being defined public?)

A reference to __acrtused is inserted into every .OBJ file produced by
the C compiler (do a dump on the OBJ file and you'll see it). The purpose
is so that the linker will pull in the startup code, which is the only
module in the library which defines it. The value of __acrtused is irrelevant.



More information about the Comp.lang.c mailing list