1. EXE Size
- Posted by ScriptBasic Feb 21, 2009
- 949 views
Hi Group,
I just installed Euphoria and lcc-32 on a new development system. As a test I tried to compile the IDE and it had a bunch of errors (language files ?) but did create a 6 MB .exe file. When I tried to run it, I got an out of memory error.
I then tried to compile the tabcontrol2 demo and it was 1,111,072 bytes. When I had Euphoria install on my old machine, I was able to compile the IDE and most Windows programs were pretty small.
What am I doing wrong?
Running the programs with the interpreter works fine.
John
2. Re: EXE Size
- Posted by mattlewis (admin) Feb 21, 2009
- 944 views
Hi Group,
I just installed Euphoria and lcc-32 on a new development system. As a test I tried to compile the IDE and it had a bunch of errors (language files ?) but did create a 6 MB .exe file. When I tried to run it, I got an out of memory error.
I then tried to compile the tabcontrol2 demo and it was 1,111,072 bytes. When I had Euphoria install on my old machine, I was able to compile the IDE and most Windows programs were pretty small.
What am I doing wrong?
Running the programs with the interpreter works fine.
The IDE is a massive program. 6MB is about what I get when building with Watcom. lcc-32 has some issues, I think (I've never used it). I'd recommend using either Watcom or Borland.
I think it is very sensitive with respect to the location of the language files, but I don't know enough about the internals to offer more help than that.
Matt
3. Re: EXE Size
- Posted by ghaberek (admin) Feb 21, 2009
- 953 views
- Last edited Feb 22, 2009
You could always use UPX to compress the executable.
-Greg
4. Re: EXE Size
- Posted by ScriptBasic Feb 22, 2009
- 835 views
I guess what I'm trying to find out is if the Euphoria to C solution compiles the complete win32.inc into each program no matter if only a few functions declares are used. I remember PowerBASIC (and maybe others) would only compile in what it used or needed.
Maybe this is the a down side of using the include but it sure makes doing GUI programming a breeze.
John
5. Re: EXE Size
- Posted by ScriptBasic Feb 22, 2009
- 856 views
Forgot to ask. Is the Pelles C compiler supported? I use it with BCX and it seems to have become their standard.
John
6. Re: EXE Size
- Posted by ScriptBasic Feb 22, 2009
- 886 views
Will Embarcadero Technologies / Code Gear CBuilder 2009 work?
How does Euphoria to C know which compiler to use?
John
7. Re: EXE Size
- Posted by ScriptBasic Feb 22, 2009
- 873 views
Uninstalled lcc-32 and installed Watcom C. (full).
The IDE compiled and worked without issue. Great stress test program for the translator and C compiler.
I read that the Euphoria C translator looks for an environment variable or searches your path. (RTFM)
I have CodeGear C Builder 2009, Windows 2005 Visual Studio, Pelles C and now Watcom C installed.
Is there any plans to expand the C compatibility list in the future?
John