LINK /PAC and /F Options Are Not Supported by Basic Compiler (31881)
The information in this article applies to:
- Microsoft QuickBASIC 4.0, when used with:
- the operating system: MS-DOS
- Microsoft QuickBASIC 4.0b, when used with:
- the operating system: MS-DOS
- Microsoft QuickBASIC 4.5, when used with:
- the operating system: MS-DOS
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
This article was previously published under Q31881 SUMMARY
The /F (far call translation) and /PAC (or /PACKCODE or /PACKC)
options of LINK.EXE version 5.01.20 should not both be used at the
same time with Basic programs. That is, don't use the command line
LINK /F/PACKC.
The following generic LINK information does NOT apply to Basic:
The LINK section on pages 276-278 of the "Microsoft CodeView and
Utilities: Software Development Tools for MS-DOS" manual shipped
with Basic Compiler 6.0/6.0b states that if the /F and /PAC options
are used together, slightly faster code and smaller executable file
size are generated. This is also stated on pages 241-242 and 248 of
the "Microsoft CodeView 2.3 and Utilities User's Guide" shipped
with Microsoft Basic Professional Development System (PDS) version
7.0 (this guide was not shipped with 7.1). /PACKCODE directs the
linker to group together neighboring code segments, and /F
optimizes far CALLs.
When you link compiled Basic routines with LINK /F/PACKC, the
executable .EXE file size remains the same as the .EXE file size when
linked without these options, and speed is not improved.
This information applies to the BC.EXE that comes with QuickBasic
versions 4.0, 4.0b, and 4.5 for MS-DOS; to BC.EXE in Microsoft Basic
Compiler versions 6.0 and 6.0b for MS-DOS and MS OS/2; and to BC.EXE
in Microsoft Basic PDS versions 7.0 and 7.1 for MS-DOS and MS OS/2.
Modification Type: | Minor | Last Reviewed: | 1/9/2003 |
---|
Keywords: | KB31881 |
---|
|