home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!wupost!emory!kd4nc!km4ba!alan
- From: alan@km4ba.uucp (Alan Barrow)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: THINK C linker makes me sad
- Message-ID: <1992Sep09.054939.1042@km4ba.uucp>
- Date: 9 Sep 92 05:49:39 GMT
- References: <fdrny7c.howard@netcom.com> <1992Sep8.085120.24380@reed.edu>
- Distribution: usa
- Organization: km4ba's packet radio gateway
- Lines: 41
-
- In <1992Sep8.085120.24380@reed.edu> bowman@reed.edu (Eric Bowman (bobo)) writes:
-
- >In article <fdrny7c.howard@netcom.com> howard@netcom.com (Howard Berkey) writes:
- >>So I was writing this really small, simple app. (a mac version of xclock,
- >>just for fun.) It was only 3k. Then I added a call to sprintf(). It
- >>exploded the program to 22k.
-
- >I hate to break it to you, but it ain't the linker's fault. printf is BIG.
- >In MPW C you can get rid of some of it if you don't do any floating point
- >conversions; I suspect you can do something similar with Think.
-
- >Basically, using printf isn't such a great idea, IMO. Sure, it's easy to
- >use, but I've found it better/smaller/faster in the long run to use
- >NumToString, etc.
-
- Funny, this is something Modula 2 users have known for ages.... :-)
-
- (Sez one who does 90% C, yet uses M2 for fun projects. I even see
- advantages to forth sometimes, yet rarely will admit that in public.)
-
- The latest turboc (dos) seems to do a pretty good job of stripping
- to a function level. ( I challenged a guy one time, and the binary
- turned out smaller than I had expected.)
-
- I have to mention shared libraries as well, as this is something that
- none of the PC users seem to be aware of. It makes lots of sense
- as used in the UNIX world. (Ex: since most apps use printf, why have 23
- versions in memory at once. Share them!!!)
-
- I am not a mac programmer, though, so feel free to suprise me with
- neat macthingies! I suspect I will end up with a powerbook soon, and
- will want to play compiler on it.
-
- See ya!
-
-
- Alan Barrow km4ba | I've seen things you people wouldn't believe. Attack
- jab@ | ships on fire off the shoulder of Orion. I watched
- hpuerca.atl.hp.com | C-beams glitter in the dark near the Tannhauser gate.
- ..!gatech!kd4nc! | All those moments will be lost in time -
- km4ba!alan | like tears in rain. Time to die. Roy Batty
-