Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

(v3.4.0) ASM: gcc

LCD 47 edited this page Dec 13, 2014 · 1 revision

Maintainer: Joshua Rahm joshuarahm@gmail.com

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|(v3.4.0)---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'
Clone this wiki locally