spam@maksimov.org wrote: >>>>> I was wondering (been doing for a long time actually!) if anyone has >>>>> seen a C++ to C converter >> >> This one is alive and only costs US$50. >> http://www.comeaucomputing.com/ > > What would be the primary use of such converter? I see two > possibilities: > > 1. Convert some existing C++ code *once*, any subsequent changes are > made to the resulting C code. > > 2. Write the program in C++, translate to C code so it would compile for > the target, test, repeat. Seems rather clunky (unless the process is > automated and very fast). I don't know about the speed, but any decent build environment can easily automate this process. It's not much different from the earlier C compilers (create assembler code, run the assembler over it to create relocatable object code, link that into a hex file or whatever representation of the binary). In the simplest case, it's just a batch file that calls two programs (the C++/C converter, then the C compiler). In a more general case, it's a simple setup for a makefile to create the result through one more step. For me, this doesn't look any different than a native C++ compiler or a normal C compiler. The one additional step is done automatically by my build environment, and once set up, I won't really think about it a lot. > Many OOP concepts can be implemented or "faked" in C. Definitely... but wasn't it you who asked for a C++ compiler? If this does what it says it does, that's your C++ compiler for any processor that has a C compiler. Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist