ASM: gcc - novaez/syntastic GitHub Wiki

Maintainer: Joshua Rahm [email protected]

Adds checking for assembly using gcc. The plugin supports both the AT&T and Intel dialects.

Options

The plugin supports the options:

For extra options to pass to the assembler, set the variable g:syntastic_asm_compiler_options:

let g:syntastic_asm_compiler_options = '-mtune=native'

To be able to set the assembler, say in a cross compiler setup, you can set the variable g:syntastic_asm_compiler:

let g:syntastic_asm_compiler = 'mipsel-linux-gcc'

To manually specify the dialect to use for the checking, set the variable g:syntastic_asm_dialect to either att or intel. By default, the checker will select the dialect by the file extension (AT&T for .s, Intel for .asm). This option overrides the automatic choice:

let g:syntastic_asm_dialect = 'intel'

To specify more options to the assembler specific to the current buffer, set the variable b:syntastic_asm_cflags:

let b:syntastic_asm_cflags = '-g'

To add additional include directories that should be added to the syntax checking command line, you can set the variable g:syntastic_asm_include_dirs to a list as such:

let g:syntastic_asm_include_dirs = ["inc","asm/src/include"]

There is an optional configuration file that defaults to .syntastic_asm_config but may be changed with the variable g:syntastic_asm_config_file. This configuration file is expected to contain a single option per line (see Configuration Files):

let g:syntastic_asm_config_file = '.config'

Use the global variable g:syntastic_asm_remove_include_errors to remove the errors of files included in one of the folder specified by g:syntastic_asm_include_dirs should be removed from the results set:

let g:syntastic_asm_remove_include_errors = 1

Use the variable g:syntastic_error_format to override the default error format:

let g:syntastic_error_format = '%f:%l: %trror: %m'

Note:

This checker doesn't call the makeprgBuild() function, and thus it ignores the usual g:syntastic_asm_gcc_<option> variables. The only exception is g:syntastic_asm_gcc_exec, which can still be used to override the checker's executable.

⚠️ **GitHub.com Fallback** ⚠️