Tuesday 15 June 2010

C++ frontend only compiler (convert C++ to C) -


I am currently managing some C ++ code that runs on multiple platforms from the same source tree (Win32, Linux, Verifone CC Terminals, MBED and even Nintendo GBA / DS). However, I need to create a targeted app on an embedded platform for which there is no C ++ compiler (C only). I suppose that many early C ++ compilers are set to only existing C compilers (for example Glossenspiels for MSc used). Are there any such 'frontend' C ++ compilers that will generate Si-coat?

  Device Platform ----------- --------- --- ______ Visual C ++ _____ WIN32 / / _______ MBEd (ARM) _______ MBED (ARM Dev Board) // _________GCC (x86) ________ Linux / source ____ / ___________ GCC (ARM) ________ GBA / DS \ \ __________ SDA______________Verifone Verix CC Terminal \ \ ________ ARM SDT__________Verifine VerixV CC Terminals \\ ______ ???? _____________ Renases M8 / 16/32 \ \ ____ ???? _____________ Z8 Family  

The last two platforms I have for good C compilers but no C ++.

You can see I am supporting a huge variety of platforms and I share the body of a large library code (and some application code).

After

You will use to compile your C ++ code, LLVM bitcode, and a backend which C

You can write commands in such a way that converts bitcode:

  LLVM-G ++ -emit-LLVM -c foo.cpp - o foo.o LLC Mar = C & LT; Foo.o & gt; Foo.c  

No comments:

Post a Comment