mirror of
git://c9x.me/qbe.git
synced 2026-04-05 09:59:47 +00:00
This is an implementation of the Windows ABI. It supports most features (struct passing/returning, varargs, env). TLS is not yet supported. This patch does not actually port QBE to Windows, it only allows QBE to generate correct asm to target Windows. As a result, testing is accomplished on a Linux host, by using a cross-compiling toolchain, and running the resulting binaries by using wine. See: TARGET=amd64_win tools/test.sh all A few cross-platform tests were changed from 'long' to 'long long' in driver code because long in C does not match the size of a QBE 'l' on Windows.
16 lines
315 B
Plaintext
16 lines
315 B
Plaintext
There is an experimental amd64_win (native Windows ABI and calling
|
|
convention).
|
|
|
|
In tree, this is currently only tested via cross-compilation from a
|
|
Linux host, and using wine to run the tests.
|
|
|
|
You'll need something like:
|
|
|
|
sudo apt install mingw64-w64 dos2unix wine
|
|
|
|
and then
|
|
|
|
make check-amd64_win
|
|
|
|
should pass.
|