Re: Euphoria++ + ++?
- Posted by Mike The Spike <mtsreborn at yahoo.com> Feb 01, 2001
- 408 views
A better way to solve this whole 'supported compiler' and 'porting Eu programs to oter platforms' crap is this. Simply ship the Win32 source for ecw.lib with ECW, but write it so that it compiles with any Windows C compiler (All you need is windows.h for GetProcAddress() wich is the standard Win32 include file) Also ship the source to EC and ECL library, and that's that. We can; A. Compile for with ANY C compiler for DOS32, Win32 and Linux. B. Port the runtime routines to other platforms, thus porting our programs to other platforms. You will automatically see a lot of EC(W/L).lib ports to Mac, BeOS, Playstation, etc. One picks up, for example, ECM.lib, wich is for Macintosh, and compiles his Euphoria program with a Macintosh C compiler, and it will run perfectly on the MAC. People can speed up runtime routines, and even hardware accelerate polygon() or pixel(), etc. It would requrie not MORE work for Rob to do this, but technically LESS work, since he don't have to compile all the runtime libraries before shhipping them, he ships the source (lol!). I have lots of Windows program that compile with VC++, LCCWin, MingW, Vector C and Cygnus C perfectly, without any modifications. So should Euphoria programs. PLU, the library routines are actually OPTIMISED by your compiler. If you own VC++6.0 (the fastest C compiler out there) your Euphoria programs and library routines will run faster. If you want, you can even strip out runtime checks from some library routines to make them faster, like c_func() or pixel(). There's no limits to what you can do! The *only* backdraws are the following; - It will take longer to compile your programs, since ecx.lib has to be compiled (wich is optional, btw, you can always just link to the prebuilt libraries). - You won't get an emake.bat file if you use, for example, "Mike's Crappy C Compiler For Windows 2000" or some shit to compile your source. But that's optional since the translator supports the compilers it supports now automatically, if you wanna use some other compiler, that's your choice, but don't bug RDS with it. Write your own goddamn bat file. Mike The Spike