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.
/FARCALL Option
                                             Up Contents Index Back
─────LINK───────────────────────────────────────────────────────────────────
 
     Syntax:  /F[ARCALLTRANSLATION]
 
     The /FARCALL option tells LINK to optimize far calls to routines
     that lie in the same segment as the caller. This can result in a
     slight gain in speed, most apparent on 80286-based machines and
     later.
 
     /FARCALL is on by default for overlaid MS-DOS programs and tiny-
     model programs. It is off by default for other programs. If an
     environment variable (such as LINK or CL) specifies /FARCALL, you
     can use the /NOFARCALL option to override it.
 
     The /PACKC option is not recommended when linking Windows
     applications with /FARCALL.
     See: /PACKC Option
 
     When /FARCALL is used, LINK replaces calling sequences such as
 
          CALL     FAR label
 
     with
 
          NOP
          PUSH     CS
          CALL     NEAR label
 
     WARNING:  A rare problem can occur in a C program when using
                   __based (_segname ("_CODE")). If such a program
                   linked with /FARCALL fails for no apparent reason,
                   try using /NOFARCALL.
                                    -♦-