Skip to content

Compiler Option: -asm


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

Translated from FreeBASIC official docs. Contact us for removal if infringed.
FreeBASIC is an open-source project, not affiliated with Microsoft