home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!unlinfo.unl.edu!news
- From: mgleason@cse.unl.edu (Mike Gleason)
- Subject: Re: THINK C linker makes me sad
- Message-ID: <1992Sep9.044144.1221@unlinfo.unl.edu>
- Sender: news@unlinfo.unl.edu
- Nntp-Posting-Host: cse.unl.edu
- Organization: NCEMRSoft
- References: <fdrny7c.howard@netcom.com> <Bu9C1M.8Mw@world.std.com>
- Distribution: usa
- Date: Wed, 9 Sep 1992 04:41:44 GMT
- Lines: 30
-
- siegel@world.std.com (Rich Siegel) 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.
- >>
- >>Please, no flames for this... I LOVE the THINK C environment, and I know
- >>that the 'open letter to symmantec' thread was months ago, but I do REALLY
- >>WISH that the THINK C linker (or loader) would recognize discrete blocks of
- >>code at the function (rather than file) level.
-
- >So use ANSI-small instead of ANSI. When you use ANSI, you drag along the
- >entire console package and floating-point support for printf() and its
- >relatives. Smart-linking can't prune away code in situations like this.
- >If you use ANSI-small, you'll save about half that 22K.
-
- Still, I would like to see Think C's smart-linker be even smarter and prune
- at the function level rather than the file level. It would be nice to
- be able to use a standardized Utilities source file or library without
- having to manually #if 0 unused functions for different projects.
-
- On the other hand, I think it's about time that some oft-used functions
- were incorporated into ROM/System file. I nominate sprintf, sscanf,
- pStrcpy, pStrcat, str{cpy, cat, cmp}, and BlockZero to become part of
- the Toolbox Utilities.
-
- --
- ______________________________________________________________________________
- mike gleason mgleason@cse.unl.edu NCEMRSoft, baby!
-