Sign in to follow this  
Followers 0
PDowning

Size of executable?

8 posts in this topic

Why are my compiled file sizes so large? I can write a one line script and compile it, it is 639k. I can write a 173 line piece and it's STILL a 639k executable when compiled. How is this?

Share this post


Link to post
Share on other sites



PDowning,

When you compile in AutoIt you do not compile in the traditional sense - you actually add a tokenised version of your script to an interpreter stub. So the size of the script has little bearing on the size of the "compiled" exe. It is the price you pay for not having to add run-time files to the compiled file. :)

And before you suggest adjusting the interpreter stub to reflect the functions used in the script - please save your breath. It has been discussed many times befiore and the answer is "No". ;)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

639kb are large?

You can add these lines to your script to reduce the size a little more:

#AutoIt3Wrapper_Run_Obfuscator=y
#Obfuscator_Parameters=/sf /sv /om /cs=0 /cn=0
#AutoIt3Wrapper_Run_After=del /f /q "%scriptdir%\%scriptfile%_Obfuscated.au3"
#AutoIt3Wrapper_UseUpx=y
#AutoIt3Wrapper_UPX_Parameters=--best --lzma

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

Thanks guys. By large I mean in relation to some previous ones I had made. One day all exe's created were 295k in size, the next they all ballooned to 635k. The size isn't an issue with storage space, it just bugs me that it increased by 2x.

1 person likes this

Share this post


Link to post
Share on other sites

That will only work when the full version of SciTE4AutoIt3 installer is installed. ;)

Is it not the full version that is downloaded from here?

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

No, you need to download and install the SciTE full package.

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

Is it not the full version that is downloaded from here?

The AutoIt3 Installer contains a siimple/lite version of the SciTE editor.

The linked extra installer comes with many extra's including AutoIt3Wrapper that handles these directives.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0