Path: utzoo!attcan!uunet!zephyr.ens.tek.com!uw-beaver!milton!dali.cs.montana.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!mit-eddie!bloom-beacon!eru!hagbard!sunic!mcsun!i2unix!inria!geocub!olch From: olch@geocub.greco-prog.fr (Olivier Charrier) Newsgroups: comp.sys.amiga.tech Subject: Re: Writing small code in SAS/C 5.10 Message-ID: <269@geocub.greco-prog.fr> Date: 4 Oct 90 10:58:31 GMT References: <13148@leadsv.UUCP> <12482@ogicse.ogi.edu> <1990Sep29.214241.27653@agate.berkeley.edu> Organization: University of Bordeaux I - FRANCE Lines: 14 >Lattice (or is that SAS/C) has three different versions of printf(). If you >include in the beginning, then the compiler will use > _writes() if you only have a string. > _tinyprintf() if all you have is %s,%s or %p. > >This can result in a saving of > 2K in final code size. There is another solution to fully use the printf capabilities (well, almost fully) with very little space: use Exec's function RawDoFmt(). It's a bit tricky to master but I was able to use %d and %s in a program merely less than 500 bytes long. See Amiga Programmer's Handbook for more details. I think it's worth it.