Nanaki Posted June 7, 2005 Posted June 7, 2005 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.
JSThePatriot Posted June 7, 2005 Posted June 7, 2005 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)
Lazycat Posted June 7, 2005 Posted June 7, 2005 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... Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s])
Nanaki Posted June 7, 2005 Author Posted June 7, 2005 Would I be able to compile AutoitSC.bin with less functions to make it smaller then? I'm talking about compiled scripts.
JSThePatriot Posted June 7, 2005 Posted June 7, 2005 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)
carpediem Posted June 7, 2005 Posted June 7, 2005 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.
Nutster Posted June 10, 2005 Posted June 10, 2005 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 NuttallNuttall 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...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now