Where Can I download Cfront from ?

  • Thread starter Rohit Upadhyay HCST
  • Start date
R

Rohit Upadhyay HCST

Hi !!!

I wanted to migrate to c++, But Im in no hurry
so I actually want to see how the C++ calls get
translated into C, using Cfront(the original thing
that Bjourne developed).

But I cant find any place to download it from ?
Any links,resources ?

Regards,
Rohit Upadhyay
 
I

Ioannis Vranos

Rohit said:
Hi !!!

I wanted to migrate to c++, But Im in no hurry
so I actually want to see how the C++ calls get
translated into C, using Cfront(the original thing
that Bjourne developed).

But I cant find any place to download it from ?
Any links,resources ?


Who said that C++ code gets translated to C nowadays?
 
H

Howard

Rohit Upadhyay HCST said:
Hi !!!

I wanted to migrate to c++, But Im in no hurry
so I actually want to see how the C++ calls get
translated into C, using Cfront(the original thing
that Bjourne developed).

But I cant find any place to download it from ?
Any links,resources ?

Regards,
Rohit Upadhyay

You could try using Google and searching for "download cfront", or something
similar.
-H
 
J

Jonathan Turkanis

Rohit said:
Hi !!!

I wanted to migrate to c++, But Im in no hurry
so I actually want to see how the C++ calls get
translated into C, using Cfront(the original thing
that Bjourne developed).

The flavor(s) of C++ handled by Cfront are obsolete now, as important as they
were in their time.

Comeau C++ translates C++ into C, but the translation depends on the backend
compiler used, and the intermediate embedding of C++ in C is proprietary.
Regards,
Rohit Upadhyay

Jonathan
 
G

Greg Comeau

I wanted to migrate to c++, But Im in no hurry
so I actually want to see how the C++ calls get
translated into C, using Cfront(the original thing
that Bjourne developed).

But I cant find any place to download it from ?
Any links,resources ?

cfront was a commercial product, so there is no place
to download it from per se. Of course, translation
from C++ to C can be interesting, but that is only one way
to do it, so don't get caught up in one way per se.
Anyway, you'll be better off with Lippman's text
"Inside the C++ Object Model" which will cover things
at the level you're asking.
 
G

Greg Comeau

Who said that C++ code gets translated to C nowadays?

Me... who says it doesn't? :) Anyway yes, indeed,
cfront is now outdated, but Comeau C++ is often used this
way (certainly in generally released commercial ports it is)
as one of its phases of translation.
 
G

Greg Comeau

The flavor(s) of C++ handled by Cfront are obsolete now,
as important as they were in their time.

Comeau C++ translates C++ into C, but the translation
depends on the backend compiler used, and the intermediate
embedding of C++ in C is proprietary.

As did cfront (earlier version of Comeau C++ were based
on cfront). Anyway, indeed. Rovert should get a hold of
the text I pointed out earlier in the thread (and once again,
just enjoy the text for what it is, it does offer some
insights for the curious, but don't get so caught up with it).
 
J

Jonathan Turkanis

Greg said:
As did cfront (earlier version of Comeau C++ were based
on cfront).

Do you mean that the translation was backend-dependent, that the intermediate
format was proprietary, or both?
Anyway, indeed. Rovert should get a hold of
the text I pointed out earlier in the thread (and once again,
just enjoy the text for what it is, it does offer some
insights for the curious, but don't get so caught up with it).

I enjoyed reading Lippman's book, but one thing I found slightly annoying was
that while in most places he is careful to differentiate between particular
implementations and the (then-emerging) C++ standard, in other places he leaves
the impression that the Cfront implementation is the only way to do things.

It would be nice if there were a more up-to-date version of his book.

Jonathan
 
E

E. Robert Tisdale

Rohit said:
I wanted to migrate to C++, but I'm in no hurry
so I actually want to see how the C++ calls
get translated into C, using Cfront
(the original thing that Bjourne developed).

You will be disappointed.
The C code emitted by Cfront
(and other C++ to C translators)
is *not* human readable
and certainly not maintainable.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top