Sign up ×
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

Is there a compiler that I can use to run C on an arduino or any other way so that I can upload C programs to my arduino?

share|improve this question
    
What do you mean by "run C"? You can just compile them into your sketch. –  Comintern Apr 8 at 22:49
    
How can I do that? I'm not very familiar with arduino software. –  Benichiwa Apr 8 at 22:50
2  
You basically do that every time you compile a sketch. The Arduino compiler is C++, which is backward compatible with C for the most part. –  Comintern Apr 8 at 22:52
    
!!!* :-) –  Russell McMahon Apr 9 at 16:11

1 Answer 1

up vote 1 down vote accepted

Perhaps you should look into here http://arduino.cc/en/Hacking/BuildProcess

Arduino uses avr-gcc compiler. Basically, it is a C compiler.

There is an step by step on how to customize this process using an avr-gcc compiler of your own here http://www.wikihow.com/Write-Arduino-Software-in-C

But I best recommend you downloading the arduino IDE on the official website to get things going. It has all the serial pairing stuff you don't really need to know to get started.

Hope it helps.

share|improve this answer
    
Thank you user2903272 and Comintern for all your help. –  Benichiwa Apr 8 at 23:45
    
GCC is a C++ compiler? Anyway, most/any C++ compiler can compile C-code as C is basically a subset of C++ (Don't quote me on this though, it'll work, but it's not that trivial) –  FuaZe Apr 10 at 9:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.