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

This is a discussion on Any tool to change c++ code into c code? within the C++ Programming forums, part of the General Programming Boards category; Hi sirs Does anyone know if there is any tool taht is able to change c++ source code into c ...

  1. #1
    Registered User
    Join Date
    Dec 2002
    Posts
    1

    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?

    Thanks.

  2. #2
    Programming Sex-God Polymorphic OOP's Avatar
    Join Date
    Nov 2002
    Posts
    1,078
    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
    Posts
    417
    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
    Location
    The edge of the known universe
    Posts
    32,825
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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 Cprogramming.com
    Replies: 4
    Last Post: 06-01-2007, 04:34 AM
  2. Sample C code that change character
    By dianazheng in forum C Programming
    Replies: 11
    Last Post: 05-29-2005, 09: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, 03:12 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21