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?

  • What do you mean by "run C"? You can just compile them into your sketch.
    – Comintern
    Commented Apr 8, 2015 at 22:49
  • How can I do that? I'm not very familiar with arduino software.
    – Benichiwa
    Commented Apr 8, 2015 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
    Commented Apr 8, 2015 at 22:52
  • !!!* :-) Commented Apr 9, 2015 at 16:11

1 Answer 1


Perhaps you should look into here https://github.com/arduino/Arduino/wiki/Build-Process

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.

  • 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)
    – aaa
    Commented Apr 10, 2015 at 9:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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