Compiler command for ARM-gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Is there any changes in the command line for compiling the arm startup and
linker for the latest scripts as follows:
https://github.com/ARM-software/CMSIS_5/tree/5.3.0/Device/ARM/ARMCM3/Source/GCC
for .ld and .S scripts.

And for the previous version I was using these scripts
https://github.com/ARM-software/CMSIS/tree/v4.3.0/Device/ARM/ARMCM3/Source/GCC
(.ld and .S)
the command i used before was :
gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-gcc -g hello_world.c
startup_ARMCM3.S -mthumb -mcpu=cortex-m3 -D__STARTUP_CLEAR_BSS
-D__START=main -Os -flto -ffunction-sections -fdata-sections
--specs=nano.specs --specs=rdimon.specs -Wl,--gc-sections -Wl,-Map=main.map
-T gcc_arm.ld -o main.axf.

I even tried
gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-gcc -g hello_world.c
startup_ARMCM3.S -mthumb -mcpu=cortex-m3  -D_start=main -Os -flto
-ffunction-sections -fdata-sections --specs=nano.specs --specs=rdimon.specs
-Wl,--gc-sections -Wl,-Map=main.map -T gcc_arm.ld -o main.axf.

But they both compiled. Is there anything new to be added which helps in
qemu(4.2.0)/semihosting (which gives error after run).

Thank you,
Abhijeet.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux