Page 1 of 1

GCC port, assembly file extension, Eclipse GNU ARM plugin

Posted: Thu Mar 31, 2016 3:01 am
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?

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

Posted: Thu Mar 31, 2016 6:10 pm
by Giovanni
Hi,

I will consider this for next major release.

Giovanni

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

Posted: Thu Mar 31, 2016 7:11 pm
by russian
Thank you! Should I create a ticket somewhere for this not to be forgotten?

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

Posted: Thu Mar 31, 2016 7:24 pm
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

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

Posted: Fri Apr 01, 2016 4:59 pm
by russian

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

Posted: Sat Apr 23, 2016 7:51 am
by Giovanni
Hi,

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

Giovanni

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

Posted: Sat Apr 23, 2016 4:26 pm
by russian
Thank you Giovanni!