Cross compilation: Difference between revisions

Cross compilation in FreeBASIC
m (→‎{{header|Wren}}: Minor changes.)
(Cross compilation in FreeBASIC)
Line 3:
Include details of any and all compilation and runtime options for incorporating platform-specific elements.<br>
If your language cannot create executable files or is not cross-platform it should be omitted from this task.
 
=={{header|FreeBASIC}}==
The FreeBASIC compiler supports all compilation targets. You only need to install one fbc per host system, and it can be used to compile both native and non-native programs.
 
* default: compile for native system
* The -target and -arch compiler options allow cross-compilation
 
 
Requirements for cross compilation:
 
The official FB release packages include a cross-compilable fbc, but fbc alone is not enough.
 
1. In addition to fbc, FreeBASIC consists of the FB runtime library (rtlib/libfb) and the FB graphics library (gfxlib2/libfbgfx). Additionally, FreeBASIC uses libraries from the MinGW, DJGPP, or Linux GCC toolchains. All these libraries are precompiled for a certain purpose.
 
2. FreeBASIC uses the assembler and linker (and sometimes even more tools) from the GNU binutils project to create binary files.
 
To keep the official FB release packages small, they only include the necessary libraries and tools for native development, but not cross-compiling.
 
 
=={{header|Phix}}==
A simple format directive in the source allows for easy cross-compilation to any other supported system, for
2,123

edits