Re: D to C compiler?

2009-02-07 Thread Daniel Keep
Joel C. Salomon wrote: > Nicolay Korslund wrote: >> The exception problem and C could be sidestepped altogether by compiling to >> C++ instead of pure C. All the major console SDKs at least will compile C++. >> This doesn't mean we would need to use any more C++ features like classes or >> tem

Re: D to C compiler?

2009-02-07 Thread Joel C. Salomon
Nicolay Korslund wrote: > The exception problem and C could be sidestepped altogether by compiling to > C++ instead of pure C. All the major console SDKs at least will compile C++. > This doesn't mean we would need to use any more C++ features like classes or > templates, the result could be pre

Re: D to C compiler?

2009-02-07 Thread Nicolay Korslund
Robert Fraser Wrote: > Nicolay Korslund wrote: > > The exception problem and C could be sidestepped altogether by compiling to > > C++ instead of pure C. All the major console SDKs at least will compile > > C++. This doesn't mean we would need to use any more C++ features like > > classes or te

Re: D to C compiler?

2009-02-06 Thread Chad J
Robert Fraser wrote: > Nicolay Korslund wrote: >> The exception problem and C could be sidestepped altogether by >> compiling to C++ instead of pure C. All the major console SDKs at >> least will compile C++. This doesn't mean we would need to use any >> more C++ features like classes or templates,

Re: D to C compiler?

2009-02-06 Thread dsimcha
== Quote from Robert Fraser (fraseroftheni...@gmail.com)'s article > Nicolay Korslund wrote: > > The exception problem and C could be sidestepped altogether by compiling to C++ instead of pure C. All the major console SDKs at least will compile C++. This doesn't mean we would need to use any more

Re: D to C compiler?

2009-02-06 Thread Robert Fraser
Nicolay Korslund wrote: The exception problem and C could be sidestepped altogether by compiling to C++ instead of pure C. All the major console SDKs at least will compile C++. This doesn't mean we would need to use any more C++ features like classes or templates, the result could be pretty mu

Re: D to C compiler?

2009-02-06 Thread Nicolay Korslund
Jarrett Billingsley Wrote: > On Sun, Jan 25, 2009 at 2:11 PM, dsimcha wrote: > > == Quote from Nick Sabalausky (a...@a.a)'s article > >> - Like Denis said, I've heard LLVM is supposed to have a plain-C backend, > >> but I don't know how far along that is or if it's working with LDC (and > >> from

Re: D to C compiler?

2009-01-28 Thread Wolfgang Draxinger
Nicolay Korslund wrote: > I remember reading something about a D to C compiler on this > group a few years ago. (I'm not really a regular here anymore, > so there might have been more recent mentions that I've > missed.) Does anyone know if there's any such project sti

Re: D to C compiler?

2009-01-27 Thread Christopher Wright
Brad Roberts wrote: It could, but then it still wouldn't necessarily interact properly with other C++ or D code eh mechanisms which aren't sjlj based. On unix, sjlj exceptions aren't used anymore. I'm not sure about windows. The presentation I saw that went through win64 showed that at least t

Re: D to C compiler?

2009-01-26 Thread Kagamin
dsimcha Wrote: > Is there any decent reading material out there about how exception handling is > works under the hood Matt Pietrek is famous for such a material. You can also look at NtRaiseException in wine sources.

Re: D to C compiler?

2009-01-25 Thread Walter Bright
Doing Win32 SEH exceptions is not that hard. Dmd's will interoperate with VS's. If you look at the phobos source code, and experiment a bit compiling samples and looking at the asm output, it should be enough.

Re: D to C compiler?

2009-01-25 Thread Jérôme M. Berger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brad Roberts wrote: > Bill Baxter wrote: >> On Mon, Jan 26, 2009 at 5:01 AM, Jarrett Billingsley >> wrote: >>> On Sun, Jan 25, 2009 at 2:11 PM, dsimcha wrote: == Quote from Nick Sabalausky (a...@a.a)'s article > - Like Denis said, I've heard

Re: D to C compiler?

2009-01-25 Thread Brad Roberts
Bill Baxter wrote: > On Mon, Jan 26, 2009 at 5:01 AM, Jarrett Billingsley > wrote: >> On Sun, Jan 25, 2009 at 2:11 PM, dsimcha wrote: >>> == Quote from Nick Sabalausky (a...@a.a)'s article - Like Denis said, I've heard LLVM is supposed to have a plain-C backend, but I don't know how far

Re: D to C compiler?

2009-01-25 Thread Brad Roberts
Denis Koroskin wrote: > On Sun, 25 Jan 2009 23:01:49 +0300, Jarrett Billingsley > wrote: > >> On Sun, Jan 25, 2009 at 2:11 PM, dsimcha wrote: >>> == Quote from Nick Sabalausky (a...@a.a)'s article - Like Denis said, I've heard LLVM is supposed to have a plain-C backend, but I don'

Re: D to C compiler?

2009-01-25 Thread Bill Baxter
On Mon, Jan 26, 2009 at 5:01 AM, Jarrett Billingsley wrote: > On Sun, Jan 25, 2009 at 2:11 PM, dsimcha wrote: >> == Quote from Nick Sabalausky (a...@a.a)'s article >>> - Like Denis said, I've heard LLVM is supposed to have a plain-C backend, >>> but I don't know how far along that is or if it's w

Re: D to C compiler?

2009-01-25 Thread dsimcha
== Quote from Jarrett Billingsley (jarrett.billings...@gmail.com)'s article > On Sun, Jan 25, 2009 at 2:11 PM, dsimcha wrote: > > == Quote from Nick Sabalausky (a...@a.a)'s article > >> - Like Denis said, I've heard LLVM is supposed to have a plain-C backend, > >> but I don't know how far along th

Re: D to C compiler?

2009-01-25 Thread Denis Koroskin
On Sun, 25 Jan 2009 23:01:49 +0300, Jarrett Billingsley wrote: On Sun, Jan 25, 2009 at 2:11 PM, dsimcha wrote: == Quote from Nick Sabalausky (a...@a.a)'s article - Like Denis said, I've heard LLVM is supposed to have a plain-C backend, but I don't know how far along that is or if it's work

Re: D to C compiler?

2009-01-25 Thread Jarrett Billingsley
On Sun, Jan 25, 2009 at 2:11 PM, dsimcha wrote: > == Quote from Nick Sabalausky (a...@a.a)'s article >> - Like Denis said, I've heard LLVM is supposed to have a plain-C backend, >> but I don't know how far along that is or if it's working with LDC (and from >> what I hear, even LDC itself isn't qu

Re: D to C compiler?

2009-01-25 Thread dsimcha
== Quote from Nick Sabalausky (a...@a.a)'s article > - Like Denis said, I've heard LLVM is supposed to have a plain-C backend, > but I don't know how far along that is or if it's working with LDC (and from > what I hear, even LDC itself isn't quite production-ready just yet, but it > is movng along

Re: D to C compiler?

2009-01-25 Thread Nick Sabalausky
"Nicolay Korslund" wrote in message news:glhuiu$11c...@digitalmars.com... >I remember reading something about a D to C compiler on this group a few >years ago. (I'm not really a regular here anymore, so there might have been >more recent mentions that I've missed.

Re: D to C compiler?

2009-01-25 Thread Denis Koroskin
On Sun, 25 Jan 2009 17:56:30 +0300, Nicolay Korslund wrote: I remember reading something about a D to C compiler on this group a few years ago. (I'm not really a regular here anymore, so there might have been more recent mentions that I've missed.) Does anyone know if there&#x

D to C compiler?

2009-01-25 Thread Nicolay Korslund
I remember reading something about a D to C compiler on this group a few years ago. (I'm not really a regular here anymore, so there might have been more recent mentions that I've missed.) Does anyone know if there's any such project still around that's alive or could be re