home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4802 < prev    next >
Encoding:
Text File  |  1993-01-09  |  1.7 KB  |  33 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!munnari.oz.au!metro!usage!news
  3. From: troy@cbme.unsw.EDU.AU (Troy Rollo)
  4. Subject: Re: Automatic data segment exceeds 64K
  5. Message-ID: <1993Jan10.010634.13926@usage.csd.unsw.OZ.AU>
  6. Sender: news@usage.csd.unsw.OZ.AU
  7. Nntp-Posting-Host: plod.cbme.unsw.edu.au
  8. Organization: University of New South Wales
  9. References: <2935516401.1.p00090@mail.psi.net>
  10. Date: Sun, 10 Jan 1993 01:06:34 GMT
  11. Lines: 20
  12.  
  13. From article <2935516401.1.p00090@mail.psi.net>, by "Jeffrey P. Overcash" <p00090@mail.psi.net>:
  14. > seems to be affecting this problem.  The manual says to use the map file 
  15. > to determine the sizes of the componant segments to see which modules 
  16. > contribute what to the DGROUP.  I've done this but nowhere can I find 
  17. > out how to move a module into another segment.  Any and all help will be 
  18. > greatly appriciated.
  19.  
  20. To do this, you will need to find the global and static data in the modules
  21. contributing most to the DGROUP segment, and move that data into separate
  22. modules. This data should then be compiled in the *HUGE* memory model.
  23. This data can then be declared external in the code modules. Using this
  24. technique of compiling code in the large model, and static data in the huge
  25. model, you effectively get to use the BC++ huge model for Windows programs.
  26. Note that string literals are also static data, and in extreme cases these
  27. may also need to be taken out and put into huge model modules.
  28. --
  29. _______________________________________________________________________________
  30. troy@cbme.unsw.EDU.AU          Overworked, overcommited and always multitasking.
  31. Opinions expressed are not those of the CBME or UNSW, but are my opinions only.
  32. You are free to adopt them.   I suggest you adopt them.    You will adopt them!
  33.