16.14 The CODE Statement

The CODE statement defines the default attributes for all code segments within the application or DLL. The SEGMENTS statement can override this default for one or more specific segments.

Syntax

CODE [[attributes]]

Remarks

The attributes field accepts one or more optional attributes: discard, executeonly, load, movable, and shared. Each can appear once, in any order. These attributes are described in “CODE, DATA, and SEGMENTS Attributes”.

Example

The following example sets defaults for the program's code segments:

CODE PRELOAD MOVABLE DISCARDABLE