FP emulation libraries (was Modula2's godawful IO)

Ralf.Brown at B.GP.CS.CMU.EDU Ralf.Brown at B.GP.CS.CMU.EDU
Fri Apr 22 01:30:13 AEST 1988


In article <230 at jupiter.olyis.UUCP>, ecb at pluto.uucp (Eric Brown) writes:
}Now include the size of the floating point libraries.  On Microsoft 5.0 C,
}calling printf links the floating point emulator, which is about 30K of code.
}        -Eric, Called Ultrahacker

Interesting.... Turbo C only links in the FP emulator if you actually use
floats in your program.  If you don't, you get an integer-only printf linked
in (which prints an error message if you try to use %f/%g/etc).  And the
emulation code is less than 19K (that's the size of the .LIB).

Just did a quick compile of the "Hello, world" program using printf and puts:

PRINTF   EXE     5720
PUTS     EXE     4080

(about 2.5K of the .EXE is the stdio library).
--
{harvard,ucbvax}!b.gp.cs.cmu.edu!ralf -=-=- DISCLAIMER? I claimed something?
ARPA: RALF at CS.CMU.EDU  FIDO: Ralf Brown 1:129/31  BIT: RALF%CS.CMU.EDU at CMUCCVMA 
TalkNet: (school) | "Tolerance means excusing the mistakes others make.
(412)268-3053     |  Tact means not noticing them." --Arthur Schnitzler



More information about the Comp.lang.c mailing list