Article View: comp.lang.modula2
Article #4191FP emulation libraries (was Modula2's godawful IO)
From: Ralf.Brown
Date: Thu, 21 Apr 1988 15:30
Date: Thu, 21 Apr 1988 15:30
22 lines
1490 bytes
1490 bytes
In article <230@jupiter.olyis.UUCP>, ecb@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@CS.CMU.EDU FIDO: Ralf Brown 1:129/31 BIT: RALF%CS.CMU.EDU@CMUCCVMA
TalkNet: (school) | "Tolerance means excusing the mistakes others make.
(412)268-3053 | Tact means not noticing them." --Arthur Schnitzler
Technical Details
Message-ID:
<226e2395@ralf>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bloom-beacon!mit-eddie!bbn!rochester!pt.cs.cmu.edu!B.GP.CS.CMU.EDU!Ralf.Brown@B.GP.CS.CMU.EDUShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bloom-beacon!mit-eddie!bbn!rochester!pt.cs.cmu.edu!B.GP.CS.CMU.EDU!Ralf.Brown@B.GP.CS.CMU.EDU From: Ralf.Brown@B.GP.CS.CMU.EDU Newsgroups: comp.lang.modula2,comp.lang.misc,comp.lang.c,comp.lang.pascal Subject: FP emulation libraries (was Modula2's godawful IO) Message-ID: <226e2395@ralf> Date: 21 Apr 88 15:30:13 GMT Sender: netnews@pt.cs.cmu.edu Lines: 21 In-Reply-To: <230@jupiter.olyis.UUCP>