Programming in pure assembler
Hi all, I want to port my existing toolchain over to the STM32 platform (bluepill board with F103C8) and need to be able to code in pure assembler. I believe that the easiest way to do that is using Eclipse with the OpenSTM32 plugins. However, I do not want to use the C compiler, because I need to implement a virtual machine to support my own compiler. So far I have set up the eclipse environment and can assemble *.asm files already, but the build process keeps trying to link crt0.o and libc.a, which results in linker errors. How can I modify the build process to avoid linking any C related libraries?
(edit: added linker output)
Invoking: MCU GCC Linker
arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -mfloat-abi=soft -Wl,-Map=output.map -Wl,----gc-sections -lm -o "mycode.elf" @"objects.list"
c:/users/me/.p2/pool/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.13.2.201703061525/tools/compiler/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7-m\libc.a(lib_a-exit.o): In function `exit':
exit.c:(.text.exit+0x16): undefined reference to `_exit'
c:/users/me/.p2/pool/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.13.2.201703061525/tools/compiler/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7-m/crt0.o: In function `_start':
(.text+0x4a): undefined reference to `main'
collect2.exe: error: ld returned 1 exit status
make: *** mycode.elf Error 1