LINK4 [objects [,program [,map [,libraries [,definitions]]]]]
LINK4 is Microsoft Segmented-Executable Linker 5.00.12. It combines one or more object modules into a segmented (NE) executable. If a field is omitted, LINK4 prompts for it; a semicolon after the last field accepts the remaining defaults.
The definitions file controls the NE program’s name, segments, imports,
exports, and protected-mode attributes. BASIC-DOS uses LINK4 to build
TESTS\BIN\PRIMES.EXE from TESTS\PRIMES\PRIMES.DEF. The /ALIGN:
switch follows the program field (for example,
PRIMES.EXE/ALIGN:16) and selects a power-of-two segment alignment.
The hard disk demo provides LINK4 in TOOLS\BIN. It’s an NE executable that
runs at ring 3 in protected mode, and through an NE loader stub in real mode,
and its banner ends in Version 5.00.12BD.
The unmodified Microsoft executable is LINK4.EXE, and mkne.js creates the BASIC-DOS conversion.
Copyright (c) 2020-2026 Jeff Parsons Released under MIT License