Automated translation from C++ to D
Aarti
aarti at interia.pl
Tue Feb 21 12:08:42 PST 2006
Walter Bright napisał(a):
> "Georg Wrede" <georg.wrede at nospam.org> wrote in message
> news:43FB4E35.5080606 at nospam.org...
>
>>Compile the C++ "half-way" (your choice of which passes), and then
>>translate that to D source code?
>
>
> It would be nearly useless, because one has to adopt different algorithms.
>
>
...but what about GCC intermediate languages? Documentation on:
http://gcc.gnu.org/onlinedocs/gccint/Tree-SSA.html#Tree-SSA
says:
"GCC uses three main intermediate languages to represent the program
during compilation: GENERIC, GIMPLE and RTL. GENERIC is a
language-independent representation generated by each front end. It is
used to serve as an interface between the parser and optimizer. GENERIC
is a common representation that is able to represent programs written in
all the languages supported by GCC."
Is GENERIC too low-level language to make it possible to convert it in a
sensible way to D?
Regards
Marcin Kuszczak
More information about the Digitalmars-d
mailing list