Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!sri-spam!nike!ucbcad!ucbvax!hplabs!oliveb!3comvax!mykes From: mykes@3comvax.UUCP (Mike Schwartz) Newsgroups: net.micro.amiga Subject: Re: printf() code size using Astartup.obj and AMIGA.LIB only Message-ID: <562@3comvax.UUCP> Date: Mon, 30-Jun-86 17:08:31 EDT Article-I.D.: 3comvax.562 Posted: Mon Jun 30 17:08:31 1986 Date-Received: Wed, 2-Jul-86 04:39:20 EDT References: <8606270438.AA07486@pavepaws> Reply-To: mykes@3comvax.UUCP (Mike Schwartz) Organization: 3Com Corp; Mountain View, CA Lines: 21 In article <8606270438.AA07486@pavepaws> dillon@PAVEPAWS.BERKELEY.EDU (Matt Dillon) 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 Is there any chance that Amiga.lib's printf() calls a printf() that is in rom somewhere (like in ROMWack???)? It does not make sense that even a simple printf() would be so small.