Sets the backend code emitter.
Syntax
Parameters
backend
gas for x86 GAS assembly or gcc for GNU C.
Description
The
-gen compiler option sets the backend code emitter and assembler.
-gen gas
The compiler will emit GAS assembler code to a .asm file which will then be compiled to an object file using 'as'.
-gen gcc
The compiler will emit C code to a .c file which will then be compiled to an object file using 'gcc' as a high level assembler. Note: the C emitter is a work in progress, incomplete, and certainly not bug free. However, the goal of the C emitter (when complete) will be to make it possible to port FreeBASIC-compiled programs (and fbc itself) to other platforms.
See also