Hello, I have found something, look here https://www.millennium.berkeley.edu/pipermail/tinyos-help/2008-August/035573.html this works, but only with the avr-gcc version installed by cygwin.
With an external avr-gcc I get an error "internal compiler error: in start_function, at c-decl.c:6248" Greets thomas > Howdy, > > > Is it possible to generate only the c-code and compile it with any > > other c-compiler like IAR or the newest avr-gcc? > > I convert nesC generated code to C a fair bit for my work so that I can > use the many tools that directly manipulate C source code. > > My current method of choice uses nesC via the TinyOS build system to > generate an app.c file. The TinyOS build system places app.c in > build/$PLATFORM. I then work with this app.c which requires making the > file into "real" C by converting dollar signs into underscores. > Assuming that you are not using a dollar sign in any of your code, the > fast way to do that is to use sed: > > ---- > sed -e 's/\$/_/g' < app.c > app.real.c > ---- > > The resulting file is then good to go with an out of the box version of > gcc. I've had luck using this with multiple different avr-gcc and other > gcc compilers. > > I'd be interested if you find a cleaner solution :-) > > Peace, > -Roy -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01 _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
