commit | e7cbfb4ea187a7d44a07bf906d0b1dec2d256d38 | [log] [tgz] |
---|---|---|
author | Andrea Pappacoda <tachi@debian.org> | Wed Mar 26 12:01:41 2025 +0100 |
committer | Andrea Pappacoda <tachi@debian.org> | Wed Mar 26 12:01:41 2025 +0100 |
tree | 08eafd16b242c393d39cefb47928bc2e34d76e3c | |
parent | 5b1abe06e8c82192aecf00c4d15477b3938ab145 [diff] |
Add CXX_32 and CXX_64 variables in the makefiles Instead of explicitly passing -m32 and -m64 to the CXX invocation, define CXX_32 and CXX_64 as "CXX -m32" and "CXX -m64", respectively. This allows easily using a cross GCC toolchain instead of GCC's multilib support, for example by defining CXX_32=i686-linux-gnu-gcc, and CXX_64=x86_64-linux-gnu-gcc. See <https://lists.debian.org/msgid-search/20250316194848.GA2297362@subdivi.de> and related messages for some more context on why multilib (-m32 and -m64) might get removed from Debian in the future, in favour of cross compilers.
A JIT assembler for x86/x64 architectures supporting advanced instruction sets up to AVX10.2
Xbyak is a C++ header-only library that enables dynamic assembly of x86/x64 instructions using mnemonics.
The pronunciation of Xbyak is /kʌɪbjæk/
(kai-byak).
The name is derived from the Japanese word 開闢 (kaibyaku), which means “the beginning of the world” or “creation”.
Note: Use and_()
, or_()
, ... instead of and()
, or()
. If you want to use them, then specify -fno-operator-names
option to gcc/clang.
ptr[(void*)0xffffffff]
causes an error.XBYAK_OLD_DISP_CHECK
if you need an old check, but the option will be remoevd.jmp(mem, T_FAR)
, call(mem, T_FAR)
retf()
for far absolute indirect jump.push(byte, imm)
(resp. push(word, imm)
) forces to cast imm
to 8(resp. 16) bit.#include <winsock2.h>
has been removed from xbyak.h, so add it explicitly if you need it.XBYAK_USE_MMAP_ALLOCATOR
will be defined on Linux/macOS unless XBYAK_DONT_USE_MMAP_ALLOCATOR
is defined.Almost C++03 or later compilers for x86/x64 such as Visual Studio, g++, clang++, Intel C++ compiler and g++ on mingw/cygwin.
GitHub | Website (Japanese) | herumi@nifty.com