Pages: [1]   Go Down
Author Topic: what's underneath arduino?  (Read 1038 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 33
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I wonder what is the real language underneath arduino? as for processig, it transforms the processing source code into Java source code, and then compiles it. does arduino transform soruce code to.... Java Micro Edition? C? C++?

how can one directly code for it? what are the limitations? what libraries can one use? if C or C++, what target platform to use for cross-compilation with gcc?
Logged

Forum Administrator
Offline Offline
Newbie
*****
Karma: 3
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Arduino code is C (and C++)

when you press the compile button the only thing that gets added is an include statement at the beginning of the program
the .o file is then linked with a few libraries (where one of them contains the main() function)

look in the various directories and you will find out!!

massimo
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 33
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks for the tip. I just looked at the gentoo linux toolchain instructions at http://jeremah.co.uk/linux/arduino_on_gentoo.html , and now it's clear to me. I guess the arduino has an Atmel AVR 8-bit RISC CPU inside, as in here: http://www.atmel.com/products/AVR/

just out of curiosity, which CPU model is it specifically?

but this information is useful, now I know that one just has to port libraries to the AVR target to use them in arduino.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 33
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry for my ignorance, it's the ATmega8 obviously...
Logged

Pages: [1]   Go Up
Jump to: