Go Down

Topic: Programming  Arduino in assembly language (Read 82655 times) previous topic - next topic


I agree. Also, one reason I stay with the Deumilanove, rather than moving voer to the Mega, is that the chip is PDIP and therefore I can program something, prototype it then pop the chip out and make my own custom PCB with the chip.

I don't personally want to learn C++ or all about Port Manipulation, etc. unless it is absolutely necesary and the Arduino environment enables me to do that with relative ease.


I don't personally want to learn C++

I am willing to bet quite a lot on the fact that you already know C++.  :)


I know a little bit yes. I like C but C++ is a bit confusing to me.


The officiel Arduino IDE does not support gcc assembler files. These files have the file extension .S.
You can only use inline assembler with the official IDE.

I modified the IDE in a way that the assembly language can be used for sketches. Have a look at the LumiNet thread in this forum and you will find my patches or the whole modified IDE for download. For example, I implemented/ported a very fast software serial lib in assembly language for my ATtiny-based Arduino-compatible boards. And because assembly language, C, and C++ use the same (gcc) compiler, you can call routines from one language in another one.

AVR Studio is something different, they use the official Atmel assembly language. This is not gnu, not open source... So I guess for the community, gnu gcc assembly language would be better suited. But it is your choice... I would love to see an Arduino assembly language group.



I too would be interested in having the ability to learn and utilize some assembly language code in sketches, using the Arduino IDE to help with some abstractions and all the gory low level stuff that assembly coding usually carries.


Go Up