Compiler Option: -asm
- Source: https://www.freebasic.net/wiki/wikka.php?wakka=CompilerOptasm
- Last revised: 2021-10-12
Set assembler format for inline assembly under -gen gcc
Syntax
-asm< format >`
`
Parameters
format
The assembler format: intel or att
Description
The -asm compiler option sets the assembler format for inline Asm blocks when using -gen gcc.
-gen gcc -asm intel: FB inline assembly blocks must use FB's usual Intel syntax format. Under -gen gcc, fbc will try to translate it to gcc's format automatically. For example:-gen gcc -asm att: FB inline assembly blocks must use gcc's format. For example:
The x86 ASM backend (-gen gas) currently only supports -asm intel and using -asm att results in an error.
See also
Back to DocToc