Article View: comp.sys.amiga.tech
Article #5613Re: Writing small code in SAS/C 5.10
From: Olivier Charrier
Date: Thu, 04 Oct 1990 10:58
Date: Thu, 04 Oct 1990 10:58
15 lines
1188 bytes
1188 bytes
>Lattice (or is that SAS/C) has three different versions of printf(). If you >include <stdio.h> 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.
Technical Details
Message-ID:
<269@geocub.greco-prog.fr>Path:
arc1-ca.pugleaf.net!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!olchReferences:
<13148@leadsv.UUCP> <12482@ogicse.ogi.edu> <1990Sep29.214241.27653@agate.berkeley.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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