AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compile AutoHotkey using Visual C++ 2005 Express Edition
Goto page Previous  1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
MTbot



Joined: 09 Apr 2006
Posts: 5

PostPosted: Sat Nov 17, 2007 8:14 am    Post subject: Reply with quote

A thousand thank yous, corrupt. The solution and project files you provided easily upgraded to VC++ 2008 Express Edition (Beta 2) with no errors.
Back to top
View user's profile Send private message Visit poster's website
Titan



Joined: 11 Aug 2004
Posts: 5037
Location: /b/

PostPosted: Tue Dec 04, 2007 1:36 pm    Post subject: Reply with quote

AutoHotkey builds well on VC08 Express with Vista SDK, all you need to do:
  1. Do Visual Studio upgrade wizard (choose No for backup)
  2. Change Debug to Release
  3. Right click AutoHotkey project then Properties
  4. Under C/C++ change Treat Warnings As Errors to No
  5. In Linker > Input remove "LibCMT;" from Ignore Specific Library
  6. Press F7 to build

I noticed a performance improvement when AutoHotkey was build this way and left uncompressed - as much as 30% faster for the most basic loop and var set test.
_________________
Chat (IRC)PlusNetScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MTbot



Joined: 09 Apr 2006
Posts: 5

PostPosted: Tue Dec 04, 2007 3:30 pm    Post subject: Reply with quote

Titan wrote:

I noticed a performance improvement when AutoHotkey was build this way and left uncompressed - as much as 30% faster for the most basic loop and var set test.


Forgive my ignorance, but the 30 percent improvement is being compared to what? VC++ 7 build with Vista? 2005 Express build with Vista? Thanks in advance.
Back to top
View user's profile Send private message Visit poster's website
Titan



Joined: 11 Aug 2004
Posts: 5037
Location: /b/

PostPosted: Tue Dec 04, 2007 3:41 pm    Post subject: Reply with quote

Compared to the official released, which is also uncompressed.
_________________
Chat (IRC)PlusNetScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
corrupt



Joined: 29 Dec 2004
Posts: 2446

PostPosted: Wed Dec 05, 2007 5:26 am    Post subject: Reply with quote

Titan wrote:
Compared to the official released, which is also uncompressed.
The official release is uncompressed??
Back to top
View user's profile Send private message Visit poster's website
Lexikos



Joined: 17 Oct 2006
Posts: 4467
Location: Qld, Australia

PostPosted: Wed Dec 05, 2007 12:50 pm    Post subject: Reply with quote

corrupt wrote:
Titan wrote:
Compared to the official released, which is also uncompressed.
The official release is uncompressed??
I don't think so. It probably doesn't matter, considering the EXE is decompressed (into memory) before the script starts... right?
Back to top
View user's profile Send private message Visit poster's website
Titan



Joined: 11 Aug 2004
Posts: 5037
Location: /b/

PostPosted: Wed Dec 05, 2007 3:19 pm    Post subject: Reply with quote

corrupt wrote:
The official release is uncompressed??
No, I de-upx it after installation to reduce launch times.
_________________
Chat (IRC)PlusNetScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
SKAN



Joined: 26 Dec 2005
Posts: 7180

PostPosted: Wed Dec 05, 2007 3:22 pm    Post subject: Reply with quote

Titan wrote:
I de-upx it after installation to reduce launch times.


Rolling Eyes

IIRC, elsewhere in our forum, Mr.Chris quoted that a compressed exe would load faster than an uncompressed one.
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4114
Location: Belgrade

PostPosted: Wed Dec 05, 2007 3:28 pm    Post subject: Reply with quote

It depends on cluster size, HD fragmentation etc...
It may be faster, especialy on multiple launches, to remove compression, but I doubt its noticable.
_________________
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5037
Location: /b/

PostPosted: Wed Dec 05, 2007 3:38 pm    Post subject: Reply with quote

Skan wrote:
IIRC, elsewhere in our forum, Mr.Chris quoted that a compressed exe would load faster than an uncompressed one.
On another thread dedicated to this I posted a benchmark script with my machine spec and graphs which show that an uncompressed exe launches a lot faster, especially if it were from LZMA. I believe others like Sean do the same, but as maji said it depends on your usage (since UPX does not cache but results in shorter seeks etc.).

One thing for sure is that the MS C++ compiler has improved over the years (although GCC still owns, apparently).
_________________
Chat (IRC)PlusNetScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
SKAN



Joined: 26 Dec 2005
Posts: 7180

PostPosted: Wed Dec 05, 2007 3:46 pm    Post subject: Reply with quote

Thanks for the clarifications majkinetor / Titan. Smile
Back to top
View user's profile Send private message
corrupt



Joined: 29 Dec 2004
Posts: 2446

PostPosted: Thu Dec 06, 2007 2:34 am    Post subject: Reply with quote

Thanks for clarifying Smile
Back to top
View user's profile Send private message Visit poster's website
dandy



Joined: 09 May 2007
Posts: 45

PostPosted: Wed Feb 27, 2008 10:28 am    Post subject: Reply with quote

i succesfully compiled the source,but i can only see autohotkey.exe,autohotkeysc.bin is not there,any hints?
Back to top
View user's profile Send private message
Oberon



Joined: 18 Feb 2008
Posts: 442

PostPosted: Wed Feb 27, 2008 10:32 am    Post subject: Reply with quote

dandy wrote:
autohotkeysc.bin is not there
You need the script compiler source.
Back to top
View user's profile Send private message
dandy



Joined: 09 May 2007
Posts: 45

PostPosted: Wed Feb 27, 2008 10:36 am    Post subject: Reply with quote

hi,

thanks for your reply.

i have the script compiler source too and it compiled ok too,but the files to create autohotkeysc.bin are not there,theres only ahk2exe.exe.


any other tip?


thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5  Next
Page 3 of 5

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group