Forum Discussion
Altera_Forum
Honored Contributor
13 years agoNios II Assembler Editor
Hi guys I'm gonna state my problem very shortly, the thing is that i'm really not a C/C++ language fan when it comes to programming, i spent my whole life writing assembly codes for a varity of pr...
Altera_Forum
Honored Contributor
13 years agoUse any text editor to create a file with a .s extension and feed the file to gcc - as you would with a C file.
In practise the compiler generated code won't be that much larger/slower than carefully wrtitten C, and it less likely to have obscure bugs. You might need to understand the constraints the language puts on the compiler, and modify the C appropriately (especially if trying to get rid of pipeline stalls), but the C generated code will be more maintainable. It can be worth looking at the generated code to check that nothing silly is happening.