LINK Help (linker.hlp) (
Table of Contents;
Topic list)
CODE Statement
◄Up► ◄Contents► ◄Index► ◄Back►
─────LINK───────────────────────────────────────────────────────────────────
Syntax: CODE [attribute...]
Defines the default attributes for all code segments in the
application or DLL. CODE takes one or more optional attributes.
Each can appear once, in any order.
Attribute Purpose
◄<discard>► Sets whether segment is discardable
◄<executeonly>► Sets execute status
◄<load>► Sets when code segment is loaded
◄<movable>► Sets whether segment is movable
◄<shared>► Sets whether segment is shareable
The SEGMENTS statement can override the defaults set by CODE.
See: ◄SEGMENTS Statement►
Example
CODE PRELOAD MOVABLE DISCARDABLE
This example sets defaults for the program's code segments.
-♦-