Quoting Xiaofan Chen : >>>> I was wondering (been doing for a long time actually!) >>>> if anyone has seen a C++ to C converter >>> >>> http://en.wikipedia.org/wiki/Cfront >> >> Hmmm, so, just one, and obsoleted... ! > > 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). Many OOP concepts can be implemented or "faked" in C. For example, to achieve a high degree of encapsulation: - Put related functions/data in their own modules - Name functions using the format - Only export the "interface" functions and data (using the module's .h file) - Practice the principles of tight cohesion and loose coupling Vitaliy -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist