Hi all!
I try to get msp430-gcc running with pure assembler input. The file test.S
looks like
this:
;-----------------------------------------------------------------------------
.section .text
.global main
.type main,@function
main: jmp main
;-----------------------------------------------------------------------------
with the command
msp430-gcc -g -O2 -mmcu=msp430x149 -D_GNU_ASSEMBLER_ -x assembler -Wall
test.S -o test.elf
I get an output, that is running well, but includes the function
_reset_vector__ and the interrupt vector table is generated automatically.
But I want to define everything manually. As an example if I modify the
source code
to
;-----------------------------------------------------------------------------
.section .text
.global main
.type main,@function
main: jmp main
ISR:
reti
;-----------------------------------------------------------------------------
; Interrupt
Vectors
;-----------------------------------------------------------------------------
.section .vectors
.word ISR
.word ISR
.word ISR
.word ISR
.word ISR
.word ISR
.word ISR
.word ISR
.word ISR
.word ISR
.word ISR
.word ISR
.word ISR
.word ISR
.word ISR
.word main
;-----------------------------------------------------------------------------
and use the command line
msp430-gcc -g -O2 -mmcu=msp430x149 -D_GNU_ASSEMBLER_ -x assembler
-nostartfiles -nostandartlibs -Wall test.S -o test.elf
then automatic generation of _reset_vector__ and the interrupt vector table
is forbidden, but in the ELF output file I can't find section .vectors!
What do I do wrong or what is missing?
Furthermore: Does a manual about msp430-gcc assembler syntax (maybe with
comparison to IAR's syntax) and command line options exist?
Thanks!
Ralf