Assembling assembly language programs

You can use GCC to build assembly language programs, as well as C language ones. If the extension of your assembly language file is '.s', the following command will assemble it:


$ msp430-gcc -D_GNU_ASSEMBLER_ -x assembler-with-cpp -c f.s -o f.o [options]
If the extension of your assembly language file is '.S', following command will assembl it:

$ msp430-gcc -D_GNU_ASSEMBLER_ -c file.s -o file.o [options]