0

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?

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

1 Answer 1

2

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.

1
  • 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) 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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.