user2899: Can you use clang, with --mpu=arm, etc. and avrdude to program an Arduino Due (Arm Cortex M3)?

user6540: Theoretically, many things are possible. There is an easy way to code Arduino on Xcode with EmbedXCode (http://playground.arduino.cc/Main/EmbedXcode), but in C and CPP.
You need a compiler that will compile your Objective-C to for the AVR (if you are using an AVR-based Arduino), this may be difficult to find. Once your code is compiled, then you need to upload it to the Arduino.
So in any reasonable means, it is at least very challenging.

user7815: Simple version: No, you cannot program Arduino using Objective-C.
Long version:
The Arduino IDE uses avr-gcc as it's compiler, and avr-gcc is a C/C++ compiler, not an Object-C compiler. The Arduino libraries are written in C/C++.
There are other compilers that exist for AVR processors, and so it is possible to use other languages for the AVR.
However, if you switch to a different compiler for your code, you will not be able to use the Arduino libraries with it, because they are written in C/C++ for the avr-gcc compiler. (It may be possible to compile the Arduino libraries with avr-gcc, and then link them to your code using external language linking methods, but that could be a significant challenge.)
Also, I do not know of any existing Objective-C compilers for AVR; it's possible one may exist, but after a quick web search, I didn't find any.

2899: <p>Can you use <code>clang</code>, with <code>--mpu=arm</code>, etc. and <code>avrdude</code> to program an Arduino Due (Arm Cortex M3)?</p>
 6540: <p>Theoretically, many things are possible. There is an easy way to code Arduino on Xcode with EmbedXCode (<a href="http://playground.arduino.cc/Main/EmbedXcode" rel="nofollow">http://playground.arduino.cc/Main/EmbedXcode</a>), but in C and CPP.</p>

<p>You need a compiler that will compile your Objective-C to for the AVR (if you are using an AVR-based Arduino), this may be difficult to find. Once your code is compiled, then you need to upload it to the Arduino.</p>

<p>So in any reasonable means, it is at least very challenging.</p>
 7815: <p>Simple version: No, you cannot program Arduino using Objective-C.</p>

<p>Long version:
The Arduino IDE uses avr-gcc as it's compiler, and avr-gcc is a C/C++ compiler, not an Object-C compiler. The Arduino libraries are written in C/C++.</p>

<p>There are other compilers that exist for <em>AVR</em> processors, and so it is possible to use other languages for the <em>AVR</em>.</p>

<p>However, if you switch to a different compiler for your code, you will not be able to use the Arduino libraries with it, because they are written in C/C++ for the avr-gcc compiler. (It may be possible to compile the Arduino libraries with avr-gcc, and then link them to your code using external language linking methods, but that could be a significant challenge.)</p>

<p>Also, I do not know of any existing Objective-C compilers for AVR; it's possible one may exist, but after a quick web search, I didn't find any.</p>
