Difference between revisions of "AMD64"

From WineHQ Wiki
Jump to: navigation, search
(Move over the AMD64 page)
(Prep link for moving Portability page)
Line 30: Line 30:
* [[Building Wine]]
* [[Building Wine]]
* [[Multiarch]]
* [[Multiarch]]
* [[Portability]]
* [[Compatibility]]
* [[Packaging]]
* [[Packaging]]
* Info about porting Wine to the [[ARM64]] architecture
* Info about porting Wine to the [[ARM64]] architecture

Latest revision as of 19:43, 21 April 2018

This page is for notes on porting the 64-bit version of Wine to the AMD64 architecture (a.k.a. x64 or x86-64) and the WoW64 setup, which allows running both 32 and 64-bit Windows apps from the same instance of Wine.

ABI Differences

There are some major differences between the x86-64 ABI on Windows and other operating systems. Here's a short list of some of the major ones:

  • The long datatype is 32 bits on Windows but is 64 bits on some OSes (such as Linux)
  • Calling conventions often differ
  • Different registers may be used for passing parameters

Tango-style info icon.svg See the reference documents at the bottom of this page for the complete picture

Consistent 32-bit Support

Ideally, Building Wine, running the Conformance Tests, and execution should be consistent across configurations. That's just as relevant when comparing 32-bit and 64-bit apps, or running apps on a stand-alone 32-bit build of Wine vs. the 32-bit components of a WoW64 setup.

One quick way to see simpler differences between the vanilla 32-bit and WoW64 builds is to scan the make and test logs from separate build directories. Here's a simple script that simply outputs message counts for different directories...

for dir in wine32 wine64
    echo $dir
    cd $dir
    echo -n "ok:  "; find . -name '*.ok' | wc -l
    echo -n "err: "; grep ok.*Error test.log | wc -l
    cd ..

Tango-style info icon.svg This is actually a pretty good idea; if expanded upon, it could be pretty effective, maybe even for the automated test suite

See Also

  • Start64 has articles, lists, and more about both AMD64 software and compatible hardware

On Wine Wiki:

Porting Guides:

Reference Documents: