Xref: utzoo comp.lang.modula2:810 comp.lang.misc:1491 comp.lang.c:9559 comp.lang.pascal:833 Newsgroups: comp.lang.modula2,comp.lang.misc,comp.lang.c,comp.lang.pascal Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: Modula2's godawful IO. Message-ID: <1988Apr24.001640.2791@utzoo.uucp> Organization: U of Toronto Zoology References: <764@ndsuvax.UUCP> <535@m10ux.UUCP> <730@mhuxm.UUCP> <230@jupiter.olyis.UUCP>, <11154@mimsy.UUCP> Date: Sun, 24 Apr 88 00:16:40 GMT > >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. > >...Not all the world is a vax, you know. > > It is not difficult[*] to arrange for the linker to pull in a simple > printf() if the rest of the program does not use floating point, and a > full-blown floating point printf if it does... In fact, if your C implementation has a limited address space and a bulky floating-point library and does NOT do this, complain to the implementors. It's not a novel or strange idea. The very first C implementation, on the pdp11, used this trick. If Microslop can't be bothered, don't buy their compiler. -- "Noalias must go. This is | Henry Spencer @ U of Toronto Zoology non-negotiable." --DMR | {ihnp4,decvax,uunet!mnetor}!utzoo!henry