Commodore PC Ms-Dos 3.2 User's Manual page 270

Table of Contents

Advertisement

1198 MS-DOS User's Reference
Examples:
^-^
The first example sets the stack size to 512 bytes:
link
file/stack:512,,;
w
The second example sets the stack size to 255 (FFH) bytes:
,
,
link
moda+modb,run/st:0xFF7ab7\lib\5tart;
The final example sets the stack size to 24 (30 octal) bytes:
[^_J
link
startup+file/st1030,,;
Setting the Maximum Allocation Space
w
Syntax:
,
j
The /cparmaxalloc
/cparmaxalloc number
option
The /cparmaxalloc option sets the maximum number of 16-byte
paragraphs needed by a program when it is loaded into memory.
M
The operating system uses this number when allocating space for
a program prior to loading it.
Link normally sets the maximum number of paragraphs to 65535.
^
)
Since this represents all addressable memory, the operating sys
tem always denies the default settings and allocates the largest
contiguous block of memory it can find. If you use the
/
j
/cparmaxalloc option, the operating system allocates no more
^-^
space than is given by this option. This means any additional
space in memory is free for other programs.
,
The number can be any integer in the range from 1 to 65535. It
^^
must be a decimal, octal, or hexadecimal number. Octal numbers
must begin with a zero, and hexadecimal values must begin with
.
.
a leading zero followed by a lowercase x. For example, 0x2B.
v-^
If number is less than the minimum number of paragraphs needed
by the program, link ignores your request and sets the maximum
,
j
value equal to the minimum needed. The minimum number of
^—
paragraphs needed by a program is never less than the number of
paragraphs of code and data in the program.
Minimum abbreviation: /c
^—'
U
U

Advertisement

Table of Contents
loading

Table of Contents