RAMzor Posted January 25, 2009 Share Posted January 25, 2009 Hi people! Why compiled files in later version of AutoIt it is more less than in last versions?For example, I have found in my archive old code from Lazycat EnumIcons.au3 and compiled file size in Autoit 3.1.0.15 - 125.441 bytes.After code adaptation (some new #include only) for last 3.3.0.0 version file size has 304.815 bytes!?It is 179.374 (243%!!!) bytes more for same compression type (normal in my case)Why? Аlso it is normal? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 25, 2009 Moderators Share Posted January 25, 2009 RAMzor,Huge changes have occured in AutoIt since 3.1, so I would not be surprised if the code stub were much larger. Look at the difference in size of "C:\Program Files\AutoIt3\Aut2Exe\AutoItSC.bin" between the 2 versions to see (remember that upx will shrink them from their full size).I see you have added some #include files - they can seriously increase the size of your compiled file. If you use the full SciTE4AutoIt3 install, you can add#AutoIt3Wrapper_Run_Obfuscator=y#Obfuscator_Parameters=/SOto the script and then all unused functions and constants are stripped out (thanks Jos ;-)). That might help reduce the size of your exes as well.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
UEZ Posted January 25, 2009 Share Posted January 25, 2009 RAMzor,Huge changes have occured in AutoIt since 3.1, so I would not be surprised if the code stub were much larger. Look at the difference in size of "C:\Program Files\AutoIt3\Aut2Exe\AutoItSC.bin" between the 2 versions to see (remember that upx will shrink them from their full size).I see you have added some #include files - they can seriously increase the size of your compiled file. If you use the full SciTE4AutoIt3 install, you can add#AutoIt3Wrapper_Run_Obfuscator=y#Obfuscator_Parameters=/SOto the script and then all unused functions and constants are stripped out (thanks Jos ;-)). That might help reduce the size of your exes as well.M23Nice to know the parameters:#AutoIt3Wrapper_Run_Obfuscator=y#Obfuscator_Parameters=/SOThanks,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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
RomanK Posted January 25, 2009 Share Posted January 25, 2009 Thanks from me, too. [font="Courier New"]http://RomanK.hondadesigns.com[/font] Link to comment Share on other sites More sharing options...
UEZ Posted January 26, 2009 Share Posted January 26, 2009 Anyway, is there any technical reason why the compiled exe is bigger than the previous release? As far as I remember since the latest Beta version compiled exe gets bigger.... Nice to know 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
Authenticity Posted January 26, 2009 Share Posted January 26, 2009 I guess more error and run-time checking has been added. Anyway it's much smaller than a plain #include <windows.h> C API program compiled using Microsoft Visual Studio for sure ;] Link to comment Share on other sites More sharing options...
RAMzor Posted January 26, 2009 Author Share Posted January 26, 2009 (edited) ...you can add#AutoIt3Wrapper_Run_Obfuscator=y#Obfuscator_Parameters=/SOIt has really a little helped and reduced the size from 304.815 bytes to 292.603 bytes (~12Kb less)! Nice to know these parameters I have applied your trick to other code and have received more considerable difference - more than 110 kb from 398kb to 288kb! Viva Jos and thanks Melba23!It should seems to me that this option is must be included by default at compilation. For what to include junk in a code? Edited January 26, 2009 by RAMzor Link to comment Share on other sites More sharing options...
KaFu Posted January 26, 2009 Share Posted January 26, 2009 Be aware that /SO means striponly, thus the resulting script is not obfuscated. Possible Parameters: /cs 0/1 : 0=No String encryption (1=default) /cn 0/1 : 0=No Numeric encryption (1=default) /cf 0/1 : 0=No Func rename (1=default) /cv 0/1 : 0=No Var rename (1=default) /sf 0/1 : 1=Strip all unused Func's (0=default) /sv 0/1 : 1=Strip all unused Global var records (0=default) /striponly: same as /cs=0 /cn=0 /cf=0 /cv=0 /sf=1 /sv=1 /sci 0 : Default Minimal output to the console: warning and errors. /sci 1 : Show more progress information. /sci 9 : Show all debug lines as found in the Obfuscator.log. /Beta : Use Beta Includes. Dont use AutoIt3Wrapper_Run_Obfuscator. To strip the source, which is included in the ouput EXE from all Comments, Whitespace and All un-used Func's (also included UDF's), you just specify : /striponly OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
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