🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #1451

"minalloc" feature in .def file.

#1451
From: mguyott
Date: Fri, 01 Mar 1991 18:04
32 lines
1704 bytes
Has anyone been able to successfully use the "minalloc" feature for the
SEGMENTS section in a windows .def file?  On page 10-8 of the SDK ref. vol.
2 it defines the syntax for the SEGMENTS section as follows:

SEGMENTS segmentname [CLASS 'class-name'] [minalloc]\
[FIXED|MOVEABLE]
[DISCARDABLE][SHARED|NONSHARED][PRELOAD|LOADONCALL]

minalloc is defined as an optional integer value that specifies the
minimum allocation size for the segment.

The following works for me:

SEGMENTS
    _TEXT       CLASS 'CODE' PRELOAD MOVEABLE DISCARDABLE
    NEW_TEXT    CLASS 'CODE' PRELOAD MOVEABLE

But the following generates a linker error:

SEGMENTS
    _TEXT       CLASS 'CODE' PRELOAD MOVEABLE DISCARDABLE
    NEW_TEXT    CLASS 'CODE' 4096 PRELOAD MOVEABLE

Has anyone been able to get the "minalloc" feature to work?         Marc
----
Two of the worst things we teach our children are that a knowledge of science
is nice but not necessary, and a knowledge of sex is necessary but not nice.

Marc Guyott              Constellation Software, Inc.          (508) 620-2800
                         Framingham, Mass. 01701 USA                Ext. 3135
mguyott@primerd.prime.com       ...!{uunet, decwrl}!primerd.prime.com!mguyott
Technical Details
Message-ID: <149000009@eriador>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!caen!sdd.hp.com!spool.mu.edu!snorkelwacker.mit.edu!primerd!primerd!eriador!mguyott

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!caen!sdd.hp.com!spool.mu.edu!snorkelwacker.mit.edu!primerd!primerd!eriador!mguyott
From: mguyott@eriador.prime.com
Newsgroups: comp.windows.ms.programmer
Subject: "minalloc" feature in .def file.
Message-ID: <149000009@eriador>
Date: 1 Mar 91 18:04:24 GMT
Lines: 32
Nf-ID: #N:eriador:149000009:000:1220
Nf-From: eriador.prime.com!mguyott    Mar  1 11:41:00 1991