public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Compiler command for ARM-gcc
@ 2021-07-28  7:34 abhijeet inamdar
  0 siblings, 0 replies; only message in thread
From: abhijeet inamdar @ 2021-07-28  7:34 UTC (permalink / raw)
  To: gcc-help

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-28  7:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-28  7:34 Compiler command for ARM-gcc abhijeet inamdar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).