Thread: Any tool to change c++ code into c code?

  1. #1
    Registered User
    Join Date
    Dec 2002

    Any tool to change c++ code into c code?

    Hi sirs

    Does anyone know if there is any tool taht is able to change c++ source code into c code?


  2. #2
    Programming Sex-God Polymorphic OOP's Avatar
    Join Date
    Nov 2002
    No, but I'm sure one could be made if there isn't one already (though I really don't see WHY you'd want to do something like that).

  3. #3
    Registered User
    Join Date
    Sep 2002
    For TIGCC, the compiler (in c) so you can write assembly for TI calculators. There's one reason, possibly.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Originally, C++ began life as a program which translated C++ into C (and it was called cfront).

    You may be able to find it on the web somewhere, and it may work for you providing you don't use some of the newer C++ features (eg. templates)

    The output of cfront is not something you'd normally want to read.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Looking for Code Analysis / Checking Tool
    By nvoigt in forum A Brief History of
    Replies: 4
    Last Post: 06-01-2007, 03:34 AM
  2. Sample C code that change character
    By dianazheng in forum C Programming
    Replies: 11
    Last Post: 05-29-2005, 08:10 AM
  3. Updated sound engine code
    By VirtualAce in forum Game Programming
    Replies: 8
    Last Post: 11-18-2004, 12:38 PM
  4. Need help with C program
    By ChrisH in forum C Programming
    Replies: 38
    Last Post: 11-13-2004, 01:11 AM
  5. Replies: 2
    Last Post: 09-04-2001, 02:12 PM