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

Table of Contents

Advertisement

Link: A Linker 197 \
D
n
n
n
n
n
n
n
n
Ignoring Default Libraries
Syntax:
/nodefaultlibrarysearch
The /nodefaultlibrarysearch option directs the linker to ignore
any library names it may find in an object file. A high-level-
language compiler may add a library name to an object file to
ensure that a default set of libraries is linked with the program.
Using this option overrides these default libraries and lets you
explicitly name the libraries you want by including them on the
link command line.
Minimum abbreviation: /nod
Example:
The following example links the object files, startup, obj and
fileobj, with routines from the libraries, em, slibfp, and slibc.
Any default libraries that may have been named in startup, obj
or file, obj are ignored:
link
startup+file/nod,,,em+slibfp+slibc
Setting the Stack Size
Syntax:
/stack-size
The /stack option sets the program stack to the number of bytes
given by size. The linker usually calculates a program's stack size
automatically, basing it on the size of any stack segments given in
the object files. If you do use the /stack option, the linker uses
the value you type in place of any value it may have calculated.
The size can be any positive integer in the range from 1 to 65535.
This value can be a decimal, octal, or hexadecimal number. Octal
numbers must begin with a zero, and hexadecimal numbers must
begin with a leading zero followed by a lowercase x. For example,
Ox IB.
By using the exemod utility, you can also change the stack size
after linking.
Minimum abbreviation: /st
The /nodefault
librarysearch option
The /stack option
n

Advertisement

Table of Contents
loading

Table of Contents