ARM-software / CMSIS_5

CMSIS Version 5 Development Repository
http://arm-software.github.io/CMSIS_5/index.html
Apache License 2.0
1.31k stars 1.08k forks source link

Arm compiler templates use legacy armasm assembly syntax. #984

Open flit opened 4 years ago

flit commented 4 years ago

The Arm Compiler 6 integrated assembler uses the GNU assembler syntax. However, the templates in Device/ARM/*/Source/ARM directories uses the legacy armasm syntax.

Either the syntax should be switched, or template with the GNU syntax should be added. The existing GNU assembler startup file won't work due to the difference in linked-defined symbols (e.g. for the stack) when using armlink.

jkrech commented 4 years ago

When migrating to AC6 the suggested approach is to use the startup_.c + linker script rather than assembler files. Therefore no GAS assembly syntax startup files are provided.

see: https://arm-software.github.io/CMSIS_5/Core/html/startup_s_pg.html https://arm-software.github.io/CMSIS_5/Core/html/startup_c_pg.html