Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utcs!oscvax!rico From: rico@oscvax.UUCP Newsgroups: net.micro.amiga Subject: Re: printf() code size using Astartup.obj and AMIGA.LIB only Message-ID: <426@oscvax.UUCP> Date: Sat, 28-Jun-86 23:43:18 EDT Article-I.D.: oscvax.426 Posted: Sat Jun 28 23:43:18 1986 Date-Received: Sun, 29-Jun-86 02:03:55 EDT References: <8606270438.AA07486@pavepaws> Reply-To: rico@oscvax.UUCP (Rico Mariani) Organization: Ontario Science Centre, Toronto Lines: 55 Summary: In article <8606270438.AA07486@pavepaws> dillon@PAVEPAWS.BERKELEY.EDU.UUCP writes: > > This should lay to rest any further arguments about printf(). > > >(linking only with AMIGA.LIB and Astartup.obj, Lattice C 3.03) > >source executable > >main() {} 1880 >main() {printf("hello\n");} 2376 > > As you can see, printf() takes 496 bytes, PERIOD, when called from >amiga.lib (it may or may not use the DOS run-time library, but that doesn't >really matter). > > -Matt Just for comparison, I thought it would be interesting to list figures for Aztec C. These numbers are with the standard 16 and 32 bit libraries, there is no distinction between 'amiga.lib' and 'lc.lib' or whatever as is found in Lattice (also no startup code to link in....) source executable main() {} 1580 16 bit ints 1636 32 bit ints main() {printf("hello\n");} 4712 16 bit ints 4944 32 bit ints Another FYI .... on Fish disk #23, there are four versions of microemacs V30, two of the were compiled with Lattice and two with Manx... presumably, the same source was used for both file executable xemacs.amigados.lattice 68356 xemacs.amigados.manx16 39928 gemacs.intuition.lattice 80312 gemacs.intuition.manx16 46976 and on fish disk #24, we find Matt Dillon's csh-ish shell (thanks Matt!!) csh.lattice 38052 csh.manx32 21180 Lattice seems to have blown more than just their run time library (I say that a lot don't I :-) ) -Rico