Currently I am working a lot with objdump output (arm / thumb instructions):
The command (arm-none-eabi-objdump -h -S main.elf > main.lst
) creates a mixture of assembly (with addresses and hex representations) and c-code. Like this:
080009e4 <configure_led1>:
// configure ccu4 of led1
void configure_led1(uint16_t off_time, uint16_t on_time){
80009e4: b480 push {r7}
80009e6: b085 sub sp, #20
80009e8: af00 add r7, sp, #0
80009ea: 4603 mov r3, r0
80009ec: 460a mov r2, r1
Unfortunately the syntax highlighting of vim gets confused by this file. It uses assembly syntax highlighting for the file (:set filetype?
returns asm
). This syntax doesn't work well with the instruction addresses and hex representations in front of the actual assembly instructions.
How do I need to configure vim to use correct highlighting? Does vim have a specific filetype for objdump output?