Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

stack plus data exceed 64K?

Data exceed Plus stack
0
10 Posted

stack plus data exceed 64K?

0

Date: 5 Feb 2002 22:03:03 -0400These messages are a variation of “DGROUP > 64K”. For causes, please seethe preceding question.If you get this error in tiny model, your program is simply too big andyou must use a different memory model. If you get this link error inmodels small, compact, medium, large, or Microsoft’s huge, there aresome things you can do. (This error can’t occur in Borland’s hugemodel.)If you have one or two big global arrays, simply declare them far. Thecompiler takes this to mean that any references to them will use 32-bitpointers, so they’ll be in separate segments and no longer part ofDGROUP.Or you can use the /Gt[number] option with Microsoft or – Ff[=size] withBorland C++ 2.0 and up. This will automatically put variables above acertain size into their own segments outside of DGROUP.Yet another option is to change global arrays to far pointers. Then atthe beginning of your program, allocate them from the far heap(_fmalloc() in Microsoft, farmalloc() in Borland).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.