[sdiy] good sourcecode to study thread

Jason Proctor jason at redfish.net
Sat Jan 8 21:41:47 CET 2011


>On Jan 8, 2011, at 3:17 PM, Dan Snazelle wrote:
>
>>  Notice that is c++
>>
>>  I did not know avr could run c++
>
>Well - theoretically speaking, if someone writes a compiler and/or 
>appropriate interpreter for it, it could use any programming 
>language. Of course, some language may be more or less practical to 
>implement and/or useful in practice than other.

traditionally there have been some restrictions compiling C++ in the 
Arduino environment. i couldn't construct in the heap or in-place, so 
everything has to be on the stack or static. also i couldn't use 
virtual methods, another heap limitation. for my projects i emulated 
various C++ features in C.

i've not tried it yet, but apparently later versions of the Arduino 
environment allow construction in the heap etc.




More information about the Synth-diy mailing list