February 01, 2004 Re: DMD parser hooked up | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ben Hinkle | Well, I eventually gave up on getting it to build on my Mac OS X box. But I DID get it to run on my P4 Linux box. YAY! Keep up the great work man! Owen Anderson In article <bupadt$16o$1@digitaldaemon.com>, Ben Hinkle says... > >After messing with the lexer I took a deep breath and got the DMD parser hooked up and started transforming trees from DMD data structures to GCC data structures. I've done enough to get "hello world" back (for now that is my baseline - don't break things so much that "hello world" stops compiling). > >Basically I got the OpenD code and updated it from DMD.36 to DMD .78 (yeah, I know, Walter released .79 today), hooked it up to the G++ front-end and started plugging in the pieces to translate back and forth. So the parsing and three semantic phases of the DMD src now run before it is turned over to GCC. It should be fairly possible to make good progress filling in these pieces until it gets hard again. > >If anyone wants to try it out for themselves you can get the tarball from >the last link at >http://home.comcast.net/~benhinkle/index.html > >I've only tried it on Linux and compiling "hello world". > >-Ben > >ps. Walter, could you remove the extra closing parenthesis on line 175 of dmd/src/dmd/module.c? > (((unsigned char *)p)[3] << 24)); > > |
February 01, 2004 Re: DMD parser hooked up | ||||
---|---|---|---|---|
| ||||
Posted in reply to resistor | <resistor@mac.com> wrote in message news:bvhqnc$pf2$1@digitaldaemon.com... > Well, I eventually gave up on getting it to build on my Mac OS X box. But I DID > get it to run on my P4 Linux box. I, too, tried it on a Mac OS X box to no avail. I wasn't getting the error you got but it was complaining like mad about other things. Plus there are chunks of the DMD source that don't compile on anything other than Win32 or Linux. I took a quick shot on a Sun Solaris, too, (Blade something or other) but didn't get much further than on the Mac. I'll try again in a while. > YAY! Keep up the great work man! > > Owen Anderson Thanks for the encouragement and for trying it out in such an early state. -Ben |
February 01, 2004 Re: DMD parser hooked up | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ben Hinkle | I'm giving it another try now on both boxes with your updated code. BTW, you're missing a #include "lexer.h" in dmd/id.c. As far as I can tell at least. I shall keep trying on OS X building. I'm determined to be to first person to compile a working D on a non-X86 processor! I'll race you! Owen In article <bvhvct$10gu$1@digitaldaemon.com>, Ben Hinkle says... > > ><resistor@mac.com> wrote in message news:bvhqnc$pf2$1@digitaldaemon.com... >> Well, I eventually gave up on getting it to build on my Mac OS X box. But >I DID >> get it to run on my P4 Linux box. > >I, too, tried it on a Mac OS X box to no avail. I wasn't getting the error you got but it was complaining like mad about other things. Plus there are chunks of the DMD source that don't compile on anything other than Win32 or Linux. I took a quick shot on a Sun Solaris, too, (Blade something or other) but didn't get much further than on the Mac. I'll try again in a while. > >> YAY! Keep up the great work man! >> >> Owen Anderson > >Thanks for the encouragement and for trying it out in such an early state. > >-Ben > > |
February 01, 2004 Re: DMD parser hooked up | ||||
---|---|---|---|---|
| ||||
Posted in reply to resistor | Alright, the P4 finished and seems to work just fine. It compiles both of your Hello programs perfectly, though it does produce a great deal of output to STDOUT. I take it that's normal? The OS X box is still compiling (yes, it's a really really old G4, so this could take a while). Thanks again for your work, Owen In article <bvi0k3$12aa$1@digitaldaemon.com>, resistor@mac.com says... > >I'm giving it another try now on both boxes with your updated code. BTW, you're >missing a >#include "lexer.h" in dmd/id.c. As far as I can tell at least. > >I shall keep trying on OS X building. I'm determined to be to first person to >compile a working D >on a non-X86 processor! I'll race you! > >Owen |
February 01, 2004 Re: DMD parser hooked up | ||||
---|---|---|---|---|
| ||||
Posted in reply to resistor | <resistor@mac.com> wrote in message news:bvi1i6$1496$1@digitaldaemon.com... > Alright, the P4 finished and seems to work just fine. It compiles both of your > Hello programs > perfectly, though it does produce a great deal of output to STDOUT. I take it > that's normal? Yeah. I left in all of my debugging printf's this time. Eventually those will get ripped out. They are useful for now when things go wrong since the compiler seg-v's if anything gets a little out of place. > The OS X box is still compiling (yes, it's a really really old G4, so this could > take a while). > > Thanks again for your work, > Owen > > In article <bvi0k3$12aa$1@digitaldaemon.com>, resistor@mac.com says... > > > >I'm giving it another try now on both boxes with your updated code. BTW, you're > >missing a > >#include "lexer.h" in dmd/id.c. As far as I can tell at least. > > > >I shall keep trying on OS X building. I'm determined to be to first person to > >compile a working D > >on a non-X86 processor! I'll race you! > > > >Owen > > |
February 01, 2004 Re: DMD parser hooked up | ||||
---|---|---|---|---|
| ||||
Posted in reply to resistor | >The OS X box is still compiling (yes, it's a really really old G4, so this could
>take a while).
Well, that didn't work. I've tried compilingit against both a GCC 3.4 snapshot
and against Apple's
modified GCC 3.3 code. The 3.4 snapshot fails when trying to link cc1d
together, while Apple's
code fails with really odd errors about things not being defined that are
defined.
The upshot is that I suspect it shall have to wait until Apple's GCC moves to 3.4.
Owen
|
February 01, 2004 Re: DMD parser hooked up | ||||
---|---|---|---|---|
| ||||
Posted in reply to resistor | You can download a weekly snapshot of the GCC-3.4 source from http://gcc.gnu.org/mirrors.html I am working from the snapshot gcc-3.4-20040107.tar.bz2 -Ben <resistor@mac.com> wrote in message news:bvjqqd$v23$1@digitaldaemon.com... > >The OS X box is still compiling (yes, it's a really really old G4, so this could > >take a while). > > Well, that didn't work. I've tried compilingit against both a GCC 3.4 snapshot > and against Apple's > modified GCC 3.3 code. The 3.4 snapshot fails when trying to link cc1d > together, while Apple's > code fails with really odd errors about things not being defined that are > defined. > > The upshot is that I suspect it shall have to wait until Apple's GCC moves to > 3.4. > > Owen > > |
February 02, 2004 Re: DMD parser hooked up | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ben Hinkle | "Ben Hinkle" <bhinkle4@juno.com> wrote in message news:bvhvct$10gu$1@digitaldaemon.com... > Plus there are > chunks of the DMD source that don't compile on anything other than Win32 or > Linux. Let me know about such problems so I can make the source better! |
February 02, 2004 Re: DMD parser hooked up | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | I ran into a few places where #if's only defined scenarios for Win32 and Linux. I solved that pretty easily though. Also, I'm waiting for my SourceForge Compile Farm account to be activated, and then I'll try compiling this on all kinds of other systems. Owen In article <bvks2n$2nnf$1@digitaldaemon.com>, Walter says... > > >"Ben Hinkle" <bhinkle4@juno.com> wrote in message news:bvhvct$10gu$1@digitaldaemon.com... >> Plus there are >> chunks of the DMD source that don't compile on anything other than Win32 >or >> Linux. > >Let me know about such problems so I can make the source better! > > |
February 02, 2004 Re: DMD parser hooked up | ||||
---|---|---|---|---|
| ||||
Posted in reply to resistor | <resistor@mac.com> wrote in message news:bvlnpd$14bp$1@digitaldaemon.com... > I ran into a few places where #if's only defined scenarios for Win32 and Linux. > I solved that pretty easily though. That's deliberate, as any other system will need to have some attention there. Once that is done, send me the fixes and I'll fold them in. |
Copyright © 1999-2021 by the D Language Foundation