AVR Assembler with MPLAB X Ide
I am starting to write an assembly program for ATTINY416. And have a few issues.
1. How do i change the extension to .S from .s?
.s is the convention for assembler source WITHOUT C Preprocessing, but I am using C preprocessing. The IDE is calling GCC with the flags to enable Preprocessing, BUT if I ask the compiler to save temporary files, there is a conflict, because the compiler wants to generate a .s file as preprocessed source. And I would like to see that.
2. It seems the Project Properties "Additional options" doesn't do anything.
If I place -save-temps in there for assembler source, either kind then that option is not passed to the compiler. The ONLY way i have found to do it, is to manually add options to the Makefile "MP_EXTRA_AS_PRE"
3. Is there a way to generate a listing, and have it take the name of the assembler file?
I CAN generate a listing by adding "MP_EXTRA_AS_PRE=-Wa,-adhln=test.lst" to the Makefile, BUT i don't want the listing to be called "test.lst" I want it to be called myfile.lst where "myfile" is the name of each assembly file in my project. Whats the way to achieve this?