1. EXE Size

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

new topic     » topic index » view message » categorize

2. Re: EXE Size

ScriptBasic said...

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: EXE Size

You could always use UPX to compress the executable. blink

-Greg

new topic     » goto parent     » topic index » view message » categorize

4. Re: EXE Size

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

new topic     » goto parent     » topic index » view message » categorize

5. Re: EXE Size

Forgot to ask. Is the Pelles C compiler supported? I use it with BCX and it seems to have become their standard.

John

new topic     » goto parent     » topic index » view message » categorize

6. Re: EXE Size

Will Embarcadero Technologies / Code Gear CBuilder 2009 work?

How does Euphoria to C know which compiler to use?

John

new topic     » goto parent     » topic index » view message » categorize

7. Re: EXE Size

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. blink

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu