Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!uw-beaver!uw-june!fred.cs.washington.edu!scott From: scott@fred.cs.washington.edu (Scott Northrop) Newsgroups: gnu.gcc Subject: Re: linking gcc object files on vax/vms Keywords: gcc vms Message-ID: <8847@june.cs.washington.edu> Date: 29 Jul 89 19:08:13 GMT References: <2686@daimi.dk> <8832@june.cs.washington.edu> Sender: news@june.cs.washington.edu Reply-To: scott@fred.cs.washington.edu (Scott Northrop) Followup-To: comp.os.vms Organization: tenuous at best Lines: 16 In article <8832@june.cs.washington.edu> scott@fred.cs.washington.edu (Scott Northrop) writes: >(mkemi@jupiter.dk writes:) >> How do I reduce the size of my executables? >Link to the shareable image that is always in memory - that way your >executable uses code that it doesn't carry around. Like so: > $ link hello, sys$library:vaxcrtl.exe/share >That should bring the executable down to a more manageable size, like 3k. Boy, I screwed the pooch on that one. It's sys$share, not sys$library, and you should have it and the non-shareable library in an option file. Take #2: $ create c.opt sys$library:vaxcrtl.olb/library sys$share:vaxcrtl.exe/share ^Z $ link hello, c.opt/opt