Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!topaz!ll-xn!nike!ucbcad!ucbvax!PAVEPAWS.BERKELEY.EDU!dillon From: dillon@PAVEPAWS.BERKELEY.EDU (Matt Dillon) Newsgroups: net.micro.amiga Subject: Re: printf() code size using Astartup.obj and AMIGA.LIB only Message-ID: <8606271659.AA09155@pavepaws> Date: Fri, 27-Jun-86 12:59:56 EDT Article-I.D.: pavepaws.8606271659.AA09155 Posted: Fri Jun 27 12:59:56 1986 Date-Received: Sat, 28-Jun-86 07:59:17 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: University of California at Berkeley Lines: 22 >What you've just done is pretty useless. You could just as well use puts() >for that. printf() is "print FORMATTED". Give us some REAL examples, that >actually do some formatting, to see whether or not the code size increases >(in other words, whether or not the compiler is smart enough not to include >the formatting routines it doesn't need). I'm guessing, but I'd expect >code size to increase (I don't have my Amiga yet, so I can't test it >myself). >Brent Dummy, how does the linker know you aren't printf()'ing any formatted stuff? it doesn't... it has to include the code anyway. Thus: main(){printf("%ld %8lx\n", 20, 30);} code size = 2392 up 16 bytes from 2376 (the extra text) satisfied? -Matt