since I tried this
without getting much feedback here are a few tips
On Monday 12 April 2010 11:02:37 j. eric townsend wrote:
> hey kids,
> Yesterday I started working on a sketch compliation program in C++ that
> Compiler() can call instead of doing the compilation internally.
So this is going to be some commandline-app which is called with a list of
arguments. The app will then call the compiler internally just like the IDE
does right now. It's nice to be able to compile from the commandline and I'd
wish the Arduino-IDE had such an user-interface, but I don't see any benefit
from doing this from another application.
Your new app has to do the same processing steps the IDE already does.
You said its going to be a C++ app. This makes me think immediatly which of
the currently supported Operating systems will be left standing in the rain.
I know most C/C++ programmers hate Java, but for the whole process of building
a Sketch across platforms which involves
- parsing the preferences boards.txt, programmers.txt,
- processing the sketch-code
- calling the compiler and uploader
Java is a very good choice and so is Python and Ruby and probably a few other
programing languages which all produce cross-platform code, because they were
created for exactly that reason.
With the right Toolkit (Qt for instance) you will be able to do the same with
C++, but you still have to build at least 6 versions of the app (Mac/Win/Linux
Since most of the compiling steps involves disk-IO there is also not increase
in performance to be expected from using C++.
Most people who are interested in commandline compiling of Sketches will not
really like your app anyway because no Makefile is involved (you already see
this in the first replys).
I think writing a Makefile generator for Skteches would stir up some postive
feedback from people.
Posted on the Developers mailing list. Go to http://arduino.cc/mailman/listinfo/developers_arduino.cc to subscribe.