3 ms·
> their IDE does a lot of parsing/mangling to turn "sketches" into C++ programs. It can mangle perfectly legal C++ code. AFAIK the parsing is limited to extrac
by follower 16y ago
> their IDE does a lot of parsing/mangling to turn "sketches" into C++ programs. It can mangle perfectly legal C++ code.
AFAIK the parsing is limited to extracting function prototypes for creating the function declarations which I wouldn't call "a lot". This has been known to miss certain legal C++ function prototypes formats though. Normally the solution is to manually write the declaration yourself and format the prototype so it doesn't get parsed.
It's not a hugely common occurrence though.
It is true that optimisation/efficiency hasn't been a huge focus and the lack of focus on it is "development policy": http://code.google.com/p/arduino/wiki/DevelopmentPolicy http://code.google.com/p/arduino/wiki/DevelopmentPolicy
While it's definitely not perfect the fact that it's based on avr-gcc makes the risk of lock-in less of an issue than some other platforms.
Plus, it's fun. :)
- agentultra 16y agoQuite true. I can be a little knit-picky. However, those are the trade off's and that's not even all of them. It is possible because of avr-gcc to bypass the whole "sketch" thing they have going and compile/load your code without even running the iDE. Like I said, I do like Arduino for what it is. :)