www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - D to C converter?

reply "Craig Black" <cblack ara.com> writes:
I had tried to start using D a while back and did some 
performance comparisons with Visual C++.  D's back end doesn't 
seem to optimize very well when I tested it. I had a huge 
performance delta. How hard would it be to make the D compiler 
emit C code that could be compiled by another C compiler?  Has 
anyone ever tried to do this?
Apr 22 2012
parent Manu <turkeyman gmail.com> writes:
--20cf300e4de727016804be48c20c
Content-Type: text/plain; charset=UTF-8

Just use GDC or LDC.

On 22 April 2012 21:26, Craig Black <cblack ara.com> wrote:

 I had tried to start using D a while back and did some performance
 comparisons with Visual C++.  D's back end doesn't seem to optimize very
 well when I tested it. I had a huge performance delta. How hard would it be
 to make the D compiler emit C code that could be compiled by another C
 compiler?  Has anyone ever tried to do this?

--20cf300e4de727016804be48c20c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Just use GDC or LDC.<br><br><div class=3D"gmail_quote">On 22 April 2012 21:= 26, Craig Black <span dir=3D"ltr">&lt;<a href=3D"mailto:cblack ara.com">cbl= ack ara.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" styl= e=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> I had tried to start using D a while back and did some performance comparis= ons with Visual C++. =C2=A0D&#39;s back end doesn&#39;t seem to optimize ve= ry well when I tested it. I had a huge performance delta. How hard would it= be to make the D compiler emit C code that could be compiled by another C = compiler? =C2=A0Has anyone ever tried to do this?<br> </blockquote></div><br> --20cf300e4de727016804be48c20c--
Apr 22 2012