Go Down

Topic: Is ASM possible with Arduino? (Read 1 time) previous topic - next topic


I just heard a rumor on another form that Assembler was possible with Arduino.

Back in the day I was a heck of an Assembler programmer (for the PC that is).



Aug 31, 2012, 05:13 am Last Edit: Aug 31, 2012, 05:15 am by frank26080115 Reason: 1

or you can just start writing everything in .S files and use the assembler through command-line
Freelance engineer, consultant, contractor. Graduated from UW in 2013.


Thanks Frank!

Something to read this weekend.



If you know how to write assembler files, the simplest method to include those ".S" files in your project is the "iard" method.

You must use the GCC assembler syntax that is a bit different from the AVR assembler syntax. 

A minor problem is that the ". S" files should be placed in a subdirectory of "libraries". "\arduino-1.0.1\libraries\AssemblerFiles" for example. You can use as many assembler libraries subdirectories as you wish but must reside in "libraries" directory, not in your projects/sketches directory.


Note: the syntax, general estructure and philosophy of inline assembly, asm(), __asm__(), and so on, is a real nightmare  designed by sadists computer scientists

Go Up