home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!world!siegel
- From: siegel@world.std.com (Rich Siegel)
- Subject: Re: THINK C linker makes me sad
- Message-ID: <Bu9C1M.8Mw@world.std.com>
- Organization: GCC Technologies
- References: <fdrny7c.howard@netcom.com>
- Distribution: usa
- Date: Tue, 8 Sep 1992 11:32:10 GMT
- Lines: 23
-
- 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.
-
- R.
-
-
- --
- -----------------------------------------------------------------------
- Rich Siegel Internet: siegel@world.std.com
- Software Engineer & Toolsmith
- GCC Technologies
-