home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!micro-heart-of-gold.mit.edu!xn.ll.mit.edu!ll.mit.edu!ejon
- From: ejon@ll.mit.edu (Eric Jones)
- Subject: Re: ballooning EXE size
- Message-ID: <1992Dec29.232313.8246@ll.mit.edu>
- Sender: ejon@ll.mit.edu (Eric Jones)
- Reply-To: ejon@ll.mit.edu (Eric Jones)
- Organization: MIT Lincoln Laboratory
- References: <01GSUT89O7JK000J0I@XRT.UPENN.EDU>
- Date: Tue, 29 Dec 92 23:23:13 GMT
- Lines: 40
-
-
- BUHLE@XRT.UPENN.EDU ("E. Loren Buhle, Jr. ") writes:
- |
- |>I have a problem with the size of an executable going from ~1,000 blocks to
- |>something on the order of 75,000 blocks.
- |>
-
- [some problem desciption deleted]
-
- |>Eventually, the addition of the simplest code causes the executable to go from
-
- Ah, we had exactly the same problem once, and the manuals were _not_ very
- helpful (for once). Finally, after carefully perusing the Linker reference
- manual (not light reading) we discovered that the linker has a weird
- behavior. Weird, that is, because I can't imagine why it's desirable.
- After the linker reaches a threshold number of ISD's (Image Section Descriptors)
- it GIVES UP trying to further compress the output image through creation
- of demand-zero sections. This default value is "approximately 96."
- In short, it's easy to fix...try the following addition to your
- link command:
-
- |>
- |>$link/map/exec=foo.exe
- |> untouchable.olb/INC=foo_main, - ! main calling routine
- |> untouchable.olb/L, - ! library of untouchable code objects
- |> expm.olb/l, - ! my interface routines
- |> sys$input/opt
- |> SYS$SHARE:FORRTL.EXE/SHARE,sys$library:vaxcrtl.exe/share
- ISD_MAX=%D1000
- ^^^^^^^^^^^^^^
-
- To read more about it, try section 3.3 of the Linker manual.
-
- |>--
- |>Dr. E. Loren Buhle, Jr. INTERNET: BUHLE@XRT.UPENN.EDU
- |>University of Pennsylvania School of Medicine Phone: 215-662-3084
- |>Rm 440A, 3401 Walnut St., Philadelphia, PA 19104-6228 FAX: 215-349-5978
- |>
-
- Eric Jones - MIT Lincoln Laboratory - 244 Wood St - Lexington MA 02173
-