Selects the target platform used by the compiler.
The target controls the predefined platform symbols, default object format,
library search paths, runtime startup code, and platform-specific compiler
behavior.
Common target names include:
dos
dos-hx
win32
win64
win32-aarch64
wince-arm
wince-mips
cygwin
linux
haiku
freebsd
dragonfly
netbsd
openbsd
darwin
solaris
illumos
android
js-asmjs
xbox
wii
nuttx
riscos
aros
Some targets may also be selected through a GNU-style target triplet such
as
linux-x86_64,
linux-arm,
android-aarch64, or
freebsd-x86_64.
For some cross targets, helper commands may be installed alongside the
compiler. Those helpers are usually the best entry point:
fbc-js
fbc-android
fbc-wii
fbc-xbox
Those commands supply the SDK, linker, runtime, and packaging options
expected by their platform.
dos-hx selects the x86 Win32 ABI for a 32-bit PE program intended for
the HX DOS extender. It uses the normal Win32 runtime, including its
preemptive thread and Winsock calls; it is not the DJGPP DOS ABI. Build the
program with an x86 Win32 toolchain, then apply HX's
PatchPE packaging
step before running it under DOS.