home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / vms / 20037 < prev    next >
Encoding:
Text File  |  1992-12-29  |  2.0 KB  |  53 lines

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