Re: Euphoria To C -- I\'m Back!
- Posted by Robert Craig <rds at ATTCANADA.NET> Sep 07, 2000
- 543 views
> The executable produced by Watcom is actually even > BIGGER than the interpretter! The interpreter is a compressed executable. The .exe's that you create with the translator are not, unless you choose to compress them yourself. > for ix = 1 to 50000 do > pixel(rand(16),{rand(640),rand(400)}) > end for > The COMPILED version runs 4 times slower than the > interpretted one! This is probably (read: not likely) > due to DOS4GW, I just tried this benchmark. First, I cranked the iterations up to 500000 to get something measureable, then I added time() calls to get an accurate measurement. Then I tried it using the DOS4GW extender. (To substitute DOS4GW for Causeway, just change "system Causeway" to "system DOS4g" in objfiles.lnk. objfiles.lnk is created automatically by the DOS32 translator, ec.exe. Anyway, the times were within 1% of each other whether I used the interpreter, the translator with CauseWay or the translator with DOS4GW. This is what I expected since almost all the time is spent in the 3 calls to rand() and the call to pixel(). In general, you can expect somewhat smaller and somewhat faster .exe's in the next release. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com