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

  1. Newsgroups: comp.sys.ibm.pc.misc
  2. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!elroy.jpl.nasa.gov!usc!wupost!gumby!yale!yale.edu!ira.uka.de!math.fu-berlin.de!fub!lime.in-berlin.de!murphy
  3. From: murphy@lime.in-berlin.de (Murphy)
  4. Subject: Re: Microsoft C question
  5. Message-ID: <ZUC5USL@lime.in-berlin.de>
  6. Organization: LIME Systems featuring a TOGA Party
  7. References: <3573@cvbnetPrime.COM>
  8. Distribution: usa
  9. Date: Thu, 23 Jul 92 01:10:36 GMT
  10. Lines: 29
  11.  
  12. bsweeney@argon.prime.computer writes:
  13.  
  14. >I am currently trying to compile and link a program
  15. >with Microsoft C and get the following error:
  16.  
  17. >  "stack plus data exceeds 64k"
  18.  
  19. >I no longer have the service contract so I cannot contact
  20. >microsoft for the answer.
  21.  
  22. >Can anyone out there let me know what is going on here?
  23.  
  24. Which compiler options do you use ? CL defaults to /AS, the small memory
  25. model. In small memory model, code and data (=data,  heap, stack) get 
  26. different segments, which can't exceed 64k.
  27. Try using large or huge memory models (option /AL or /AH).
  28. BTW, online help should also clarify this error message.
  29.  
  30. >    Thanks in advance!
  31.  
  32. >    Brian
  33.  
  34. >p.s. 
  35. >     My system is :                Miscrosoft C ver 6.0
  36. >       IBM 386 25mhz, 
  37. >       4mb ram, 
  38. >       plenty of space (80mb
  39.  
  40.       Murphy
  41.