🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #1703

Re: Problem with large DGROUP segment, MS C7

#1703
From: Chris Marriott
Date: Sat, 12 Dec 1992 18:58
41 lines
1847 bytes
In article <8051@skye.ed.ac.uk> jacs@aiai.uucp writes:

>Hi,
>
>I'm compiling a largish Windows program with MS C7, large model, and linking
>gives me an L1074 error - DGROUP segment larger than 64K.
>How can I get round this, or can I?  For some reason,
>generating a MAP file doesn't work (the file is empty) although
>I've given the /MAP:FULL and /LI options to the linker.
>
>Heeeelp....!
>
>Thank you for any tips.
>
>Julian Smart
>jacs@aiai.ed.ac.uk
>

There are several options:

1.  Use the "/Gtn" flag to tell the compiler to put all items greater than
    "n" bytes long into FAR DATA.

2.  If you have any global or static arrays, use "malloc" or "GlobalAlloc"
    instead.

3.  Put any quoted strings into a STRINGTABLE resource in the program's RC
    file.

4.  Make sure the stack is no larger than it has to be.

These measures should help.

-- 
--------------------------------------------------------------------------
| Chris Marriott                   | chris@chrism.demon.co.uk            |
|                                  | BIX: cmarriott                      |
| (Still awaiting inspiration      | CIX: cmarriott                      |
|  for a witty .sig .... )         | Compuserve: 100113,1140             |
--------------------------------------------------------------------------
 
Technical Details
Message-ID: <724186689snz@chrism.demon.co.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
References: <8051@skye.ed.ac.uk>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
Subject: Re: Problem with large DGROUP segment, MS C7 
Distribution: world
References: <8051@skye.ed.ac.uk>
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Lines: 41
Date: Sat, 12 Dec 1992 18:58:09 +0000
Message-ID: <724186689snz@chrism.demon.co.uk>
Sender: usenet@demon.co.uk