home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / misc / 4370 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.7 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!dog.ee.lbl.gov!ucbvax!mtxinu!sybase!rhoda
  2. From: rhoda@sybase.com (Rhoda Neimand)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: Problem with large DGROUP segment, MS C7
  5. Message-ID: <27335@sybase.sybase.com>
  6. Date: 18 Dec 92 19:37:26 GMT
  7. References: <8051@skye.ed.ac.uk>
  8. Sender: news@Sybase.COM
  9. Organization: Sybase, Inc.
  10. Lines: 29
  11.  
  12. In article <8051@skye.ed.ac.uk> jacs@aiai.uucp (Julian Smart) writes:
  13. >Hi,
  14. >
  15. >I'm compiling a largish Windows program with MS C7, large model, and linking
  16. >gives me an L1074 error - DGROUP segment larger than 64K.
  17. >How can I get round this, or can I?  For some reason,
  18. >generating a MAP file doesn't work (the file is empty) although
  19. >I've given the /MAP:FULL and /LI options to the linker.
  20.  
  21. This means that your static data has exceeded 64K (actually static data
  22. + heap if DLL : static data + heap + stack if regular program).
  23.  
  24. You can use the /Gt compile switch to set a threshold for static data,
  25. e.g. /Gt32 tells the compiler to create a new segment for each piece
  26. of static data that is greater than 32 bytes.  You can play with the
  27. /Gt switch to see what threshold amount works well for you.  Knowing
  28. where and what your static data is will help you in this endeavor.
  29.  
  30. Then, you can use the /PACKDATA linker switch to tell the linker to
  31. pack your segments back together.  It packs as many as it can into
  32. 64K.
  33.  
  34. As for the MAP file.  You can't get a MAP file until the whole thing
  35. links.
  36.  
  37. --
  38. Rhoda Neimand                            [I speak for myself]
  39. {sun,lll-tis,pyramid,pacbell}!sybase!rhoda -or- rhoda@sybase.com
  40. "I didn't want to, Jim"        Mr. Spock in _This Side Of Paradise_
  41.