home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / ibm / pc / misc / 10819 < prev    next >
Encoding:
Text File  |  1992-07-24  |  1.7 KB  |  40 lines

  1. Path: sparky!uunet!olivea!decwrl!csus.edu!netcomsv!mork!jsteele
  2. From: jsteele@netcom.com (John Steele)
  3. Newsgroups: comp.sys.ibm.pc.misc
  4. Subject: Re: MS C question
  5. Message-ID: <31hmp+r.jsteele@netcom.com>
  6. Date: 24 Jul 92 17:34:58 GMT
  7. References: <1992Jul23.154650.3136@ducvax.auburn.edu>
  8. Organization: Netcom - Online Communication Services  (408 241-9760 guest)
  9. Lines: 29
  10.  
  11. In <1992Jul23.154650.3136@ducvax.auburn.edu> hjkim@ducvax.auburn.edu writes:
  12.  
  13. >After you compile the file, use exehdr.exe and exemod.exe to change 
  14. >header structure. 
  15. >I had a similar problem and the change of memory model could not
  16. >fix the problem. I directly changed the stack address, I think.
  17. >It was several months ago, so I am not sure that I changed the addredd
  18. >or other things with those tho executable files.
  19.  
  20. >Finally I reduece the number of arrays defined in the program and
  21. >the number of the variables. Then no errors in compiling.
  22.  
  23. A simpler approach is to use -Gt at compile time.  This places all data
  24. objects larger than 256 bytes in their own segment, instead of the
  25. default data segment.
  26.  
  27. By default (i.e. without -Gt) only data objects larger than 32k get their
  28. own segment.  All of this is described in Quick Help, with quite a bit
  29. of detail...
  30.  
  31. FYI,
  32.   John
  33. -- 
  34. #include <disclaimer.h>            /* route all flames to /dev/null  */
  35. /**************************************************************************/
  36. /*   Systems Analyst      | John Steele     email: jsteele@netcom.com     */
  37. /* Video Business Systems |                                               */
  38. /*   1-800-255-3088       |    Most people spell COBOLSUX incorrectly...  */
  39. /**************************************************************************/
  40.