Jump to content

Recommended Posts

Posted

I want to create a small executable, but the .exe its size is pretty big, especially with the latest beta's. Is there any way to decrease it?

This may be a stupid question, but you never know. :(

Posted

Are you talking about the AutoIt executable? Or a script exectuable? If you are just wanting to use a script on another machine just compile it into an exe.

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Posted

I want to create a small executable, but the .exe its size is pretty big, especially with the latest beta's. Is there any way to decrease it?

No way... This is a payment for simplicity and this is minimal program size, because this is a size of interpreter + you script. You can use previous releases with smaller exe's (75-80kb), but you miss lots of new fetures. You decide...

Posted

Would I be able to compile AutoitSC.bin with less functions to make it smaller then?

I'm talking about compiled scripts. :(

Posted

Would I be able to compile AutoitSC.bin with less functions to make it smaller then?

I'm talking about compiled scripts. :(

<{POST_SNAPBACK}>

To my knowledge no. You have to becareful what you modify. Might want to check with Jon. If I remember correctly there are only certain things in the .bin folder that are supposed to be modified.

Why in the world are you worried about 152Kb? I have a 5kb Script and when Compiled it is 157Kb... soo I dont understand your delima in size. Anything will hold 157kb. (Just about)

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Posted

To my knowledge no. You have to becareful what you modify. Might want to check with Jon. If I remember correctly there are only certain things in the .bin folder that are supposed to be modified.

Why in the world are you worried about 152Kb? I have a 5kb Script and when Compiled it is 157Kb... soo I dont understand your delima in size. Anything will hold 157kb. (Just about)

JS

<{POST_SNAPBACK}>

It would, however, be nice if the compiler could exclude all "parsers" for the internal functions not used in a script though... If that is what adds to the file size. I'm sure it would be lots of work and probably not worth the extra bytes saved... But still :(

People do this with dll's right? Extract only the functions from a header file that they use, in order to bring down the total size after compilation.

Posted

The .bin file needs to know how to execute all the functions and operators, etc. that could be called from any script that it will be attached to. To start dropping code sections based on what is being used in the script would require recompiling the C-code. This is not a trivial task. I do not want to tackle this at this point. To have Aut2Exe drop chunks of code would require a total rewrite of Aut2Exe and .bin, to enable this behaviour. It is just not worth it, I think.

David Nuttall
Nuttall Computer Consulting

An Aquarius born during the Age of Aquarius

AutoIt allows me to re-invent the wheel so much faster.

I'm off to write a wizard, a wonderful wizard of odd...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...