GCC port, assembly file extension, Eclipse GNU ARM plugin

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
User avatar
russian
Posts: 368
Joined: Mon Oct 29, 2012 3:17 am
Has thanked: 16 times
Been thanked: 14 times

GCC port, assembly file extension, Eclipse GNU ARM plugin

Post by russian »

Finally migrating to newer ChibiOS. I've noticed that GCC port now has .s assembly files. For historical reasons I am using Eclipse GNU ARM plugin instead of Makefile. GNU ARM plugin does not like .s extension, it likes .S and .asm

http://gnuarmeclipse.github.io/support/ ... he-project
The plug-in seems to ignore assembly .s files. How can I add them to the project?
Due to a very complicated portability reason, Eclipse is not able to distinguish, and thus separately process, .s and .S files. The current CDT configuration associates assembly files only with .asm and .S files, and completely ignores .s files. Although it might be possible to change the Eclipse file associations, I would not recommend this. Better change the assembly file extensions to .S and use the default settings.

Please note that .S assembly files will be processed by gcc, not by as; this also means that the file will be first preprocessed like all C/C++ files, allowing conditional compilation and macro expansion.


Unless I am the only person using ChibiOS with GNU ARM, would it be possible to rename assembly files to .S or .asm?
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: GCC port, assembly file extension, Eclipse GNU ARM plugi

Post by Giovanni »

Hi,

I will consider this for next major release.

Giovanni
User avatar
russian
Posts: 368
Joined: Mon Oct 29, 2012 3:17 am
Has thanked: 16 times
Been thanked: 14 times

Re: GCC port, assembly file extension, Eclipse GNU ARM plugi

Post by russian »

Thank you! Should I create a ticket somewhere for this not to be forgotten?
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: GCC port, assembly file extension, Eclipse GNU ARM plugi

Post by Giovanni »

Hi,

I have a queue of things to do (a bunch of shortcuts on my desktop ;)). Opening a ticket would be the best way handle this anyway.

Giovann
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: GCC port, assembly file extension, Eclipse GNU ARM plugi

Post by Giovanni »

Hi,

This change has been committed. It took some time because all Makefiles required changes because this.

Giovanni
User avatar
russian
Posts: 368
Joined: Mon Oct 29, 2012 3:17 am
Has thanked: 16 times
Been thanked: 14 times

Re: GCC port, assembly file extension, Eclipse GNU ARM plugi

Post by russian »

Thank you Giovanni!
Post Reply