--- Quote Start ---
originally posted by steve360@Jul 20 2004, 06:09 AM
if you add the switch "-save-temps" to your gcc flags, the compiler will keep the intermediate ".s" (assembler source) file for each c or c++ module - instant assembler examples! --- Quote End ---
Thanks - this is a good idea but this is not really what I was looking for.
An option to "compile via assembler" in the tools by bigger boys (Microsoft, Borland) creates listings including assembler lines following directly lines in C-code they replace. Also, they use C-level function/variable names in assembler to make it easier to understand what compiler have done with the C-code.
Also, I have not only problems with creating a assembly file but also having problems compiling *.s files I found on my harddrive in nios2 folders. The project settings or make file is just not ready to compile assembler files. I got build errors like "Error *** No rule to make target `all'. Hello_Assembler" and "Error *** No rule to make target `clean'. Hello_Assembler " indicating I have something really wrong with my project files/make files.