GCC port, assembly file extension, Eclipse GNU ARM plugin
Posted: Thu Mar 31, 2016 3:01 am
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
Unless I am the only person using ChibiOS with GNU ARM, would it be possible to rename assembly files to .S or .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?