LINK Help (linkx.hlp) (Table of Contents; Topic list)
/FARCALL Option
                                             Up Contents Index Back
─────/FARCALL Option────────────────────────────────────────────────────────
 
     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. The /PACKC option can be used with /FARCALL when linking
     for OS/2. /PACKC is not recommended when linking Windows
     applications with /FARCALL.
     See: /PACKC Option
 
     The /FARCALL option is off by default. If an environment variable
     (such as LINK or FL) includes /FARCALL, you can use the /NOFARCALL
     option to override it.
 
     When /FARCALL is used, LINK replaces calling sequences such as
 
          CALL     FAR function
 
     with
 
          NOP
          PUSH     CS
          CALL     NEAR function
 
     Caution
 
     A rare problem can occur when using _based (segname ("CODE")) in
     a C program. If such a program linked with /FARCALL fails for no
     apparent reason, try using /NOFARCALL.
                                    -♦-