Jump to content

Developing in 32-bit Windows but intended for 64-bit Windows


cag8f
 Share

Go to solution Solved by PainTain,

Recommended Posts

I am developing/testing a code on a system running Windows 7 32-bit.  The goal is to eventually build an exe from the code and run it on a system running Windows 7 64-bit.  If I do not have access to a 64-bit system, will I be able to accurately/comprehensively test my code to ensure that it will run properly on the 64-bit system?

For example, is there a way, while testing on my 32-bit system, to somehow mimic the key conditions/characteristics of a 64-bit system? Or is there a way that I can build my code/exe in the 32-bit environment, and somehow instruct it to run "in a 32-bit manner" (whatever that means), even if on a 64-bit system?

This may be more of a Windows question, but I decided to start here.

Link to comment
Share on other sites

Simply: No.

Instructions encoded for AMD64/Intel 64 cannot run on a IA-32 processor. Other way round is possible.

This means you can build your script just for 32-bit Windows' and also deploy it for 64-bit machines.

(Although your script should perform the same on both, 32-bit and 64-bit Windows'. (Excluding code which uses the Registry/Inline Assembly))

Edited by PainTain
Link to comment
Share on other sites

Thanks for the reply.

Instructions encoded for AMD64/Intel 64 cannot run on a IA-32 processor. Other way round is possible.

This means you can build your script just for 32-bit Windows' and also deploy it for 64-bit machines.

 

This sounds like you are saying I *can* accomplish my goal (If I'm understanding this correctly).  Specifically, the second sentence--isn't it saying that I can build (and test) my script in my 32-bit environment, and deploy it on a 64-bit machine without issue?

Link to comment
Share on other sites

  • Solution

Thanks for the reply.

 

This sounds like you are saying I *can* accomplish my goal (If I'm understanding this correctly).  Specifically, the second sentence--isn't it saying that I can build (and test) my script in my 32-bit environment, and deploy it on a 64-bit machine without issue?

Yes.

You can run 32-bit executables without any problem on 64-bit processors.

So you don't have to build a 64-bit version of your script, you can also deploy the 32-bit executable for both.

Link to comment
Share on other sites

Thanks.  But when I click 'Compile,' a window opens up, and one of the options is "Output arch."  There are 2 check boxes here:

Compile X86 version.

Compile X64 version.

How do these fit into our discussion?  Do I need to make sure to check the latter?

Link to comment
Share on other sites

For those who want or need to produce executables aimed to 64-bit OSes exclusively, maybe for instance that they need to use a DLL available only in 64-bit or other good reason.

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

Or as previously mentioned if the script uses inline assembly, for example: trancexx a while back made an amazing starfield / warp example using assembly in autoit, the assembly was specific to 32 bit computers only.

For 95% of what you do though, compiling in 32bit will be fine :P

Edited by Jon

0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Link to comment
Share on other sites

Great, thanks guys.  I don't plan on anything too complicated with this project, so I can stick with a 32 bit environment.  But for the future, in case I do want to dabble in higher level 64 bit Autoit programming, is there some official Autoit documentation that describes when/how I need to modify script writing and/or compiling?

Link to comment
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
 Share

  • Recently Browsing   0 members

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