LINK Help (linker.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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.
                                    -♦-