Re: Euphoria 3.0.0 Released! - what about Openwatcom?
- Posted by Robert Craig <rds at RapidEuphoria.com> Oct 19, 2006
- 490 views
schrott wrote: > Nice to see that Euphoria is now actually open source. > So I went and tried to build it. > > There's no mention anywhere in the build > instructions what Watcom version should be used. > From looking inside the exw.exe I see that it is probably build > with some old (10,11?) version of the Watcom Compiler. > > Now, I have tried building it with Openwatcom 1.5. First it > seemed like there are no bigger problems. I left INT_CODES > defined. exw.exe was built without problems. > > First example i tried was animal.x. Worked. > Second example was the sieve Benchmark. This doesn't work, it hangs. > I ran the sieve8k.exw with trace. It hangs at line 42. ENDFOR statement. > > Can anyone confirm this? > > From looking at source I see that there are quite a few Watcom-specific > hacks. Now I really think that Openwatcom should be properly supported. > From what I understand BCC and LCC dont seem to have "threaded code" > implemented and are thus much slower. Or maybe support gcc/mingw32 on > windows? That's quite common nowadays. I'm using Watcom 10.6, but I have built everything recently using Open Watcom. I believe there is one line of C source that has to change with Open Watcom. You'll get an error message, but the comment I added tells you how to correct it. You'll probably also have to adjust the stack offsets in be_callc.c and be_task.c, to get calls to C dll routines working, and multitasking working with the Translator. By the way, you can always run the Translator as a normal interpreted program. I only translate/compile it for added speed. I build the Windows translator using Borland (-bor option), but there is no particular reason for that, other than I thought it would be nice to test the translator with Borland on each build. -wat could be used. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com