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.
FUNCTIONS Statement
                                             Up Contents Index Back
─────LINK───────────────────────────────────────────────────────────────────
 
     Syntax:  FUNCTIONS[:{segmentname|overlaynumber}]
                functionname
 
     Places functions in a specified physical order and assigns
     functions to segments or overlays.
     See: Creating Overlaid DOS Programs
 
     The FUNCTIONS keyword marks the beginning of a section of
     functions. FUNCTIONS statements can appear more than once in the
     file. FUNCTIONS can be followed by a colon and a destination
     specifier, which is either <segmentname> or <overlaynumber>.
 
     The <segmentname> specifies a segment in which a function is to be
     placed. <segmentname> does not have to be previously defined in a
     SEGMENTS statement. LINK assumes a segment definition using the
     class CODE; a later SEGMENTS statement can redefine the segment.
 
     The <overlaynumber> specifies the overlay in which a function is
     to be placed. Valid overlay numbers are in the range 0-65,535. The
     number 0 represents the root.
 
     The <functionname> is the identifier for a packaged function.
     Specify one or more function names, separated by one or more
     spaces, tabs, or newline characters. If the function is in a C++
     module, <functionname> must be specified as a decorated name.
     See: Decorated Names
          Packaged Functions
 
     Examples
 
          FUNCTIONS:2 myfunc1 myfunc2 myfunc3
 
     This statement places three functions into the second overlay.
 
          SEGMENTS myseg OVL:2
          FUNCTIONS:myseg myfunc1 myfunc2 myfunc3
 
     This set of statements assigns the myseg segment to the second
     overlay and places three functions into myseg.
                                    -♦-