home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.ms-windows.programmer.misc:1858 comp.os.msdos.programmer:9379
- Path: sparky!uunet!mcsun!sunic!dkuug!iesd!iesd.auc.dk!richard
- From: richard@iesd.auc.dk (Richard Flamsholt S0rensen)
- Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.msdos.programmer
- Subject: String literals exceeds 64Kb under Windows
- Message-ID: <RICHARD.92Sep15223120@petersen.iesd.auc.dk>
- Date: 15 Sep 92 21:31:20 GMT
- Sender: news@iesd.auc.dk (UseNet News)
- Distribution: comp
- Organization: Mathematics and Computer Science, Aalborg University
- Lines: 38
-
-
- Question Q202 in c.o.m.p's FAQ reads:
-
- Q202. How do I fix "automatic data segment exceeds 64K" or "stack plus
- data exceed 64K"?
-
- Good question, indeed. Good solutions, too: in essence telling you
- to move large structures into their own segments.
-
- This can easily be done, unless it is string literals that causes
- your segment bucket to overflow. In that case the only solution
- seems to be to compile the offending module under the huge model (and
- I don't mean Brigitte Nielsen).
-
- All in all very well, *unless* you're developing under Windows,
- where it (presumably) won't let you use the huge model! Well, *I* am
- and I'm stuck! Believe me, I'm really having a hard time squeezing
- the static data for an almost 1Mb (ok, with -v) executable with many
- debug strings, input/output file format strings, user messages etc
- into a single data segment. Most of the strings sits in very few
- modules, but that's no comfort if it's not possible to put those
- string literals into a segment of their own.
-
- Therefore, I now turn to you, dear netters. Huge models appears
- impossible with Windows, #pragma option -zE/F/H makes no difference,
- -Ff=whatever just laughs at me etc. Somebody *must* have had this
- problem before me. I might expect resources or DLLs to be the
- answer, but I'd like to know if there is another way.
- I'm using Borland C(++) 3.1 and Windows 3.1. (note cross-posting).
-
- Thanks in advance,
- Richard
-
- PS: oh, yes -- if it turns out to be !a-piece-of-cake I'll summarize
- any email responses.
- --
- Richard Flamsholt
- richard@iesd.auc.dk
-