Add build infrastructure for x64 interpreter.

Must be explicitly enabled with: make clean && make "CC=gcc -m64"
Only works on Linux/x64. Does not work on WIN64 or OSX/x64 (yet).
This commit is contained in:
Mike Pall
2010-01-14 12:28:16 +01:00
parent a431d6f35c
commit 82417ee889
5 changed files with 4658 additions and 6 deletions

View File

@@ -67,9 +67,15 @@ static int collect_reloc(BuildCtx *ctx, uint8_t *addr, int idx, int type);
#define DASM_ALIGNED_WRITES 1
/* Embed architecture-specific DynASM encoder and backend. */
#if LJ_TARGET_X86
#if LJ_TARGET_X86ORX64
#include "../dynasm/dasm_x86.h"
#if LJ_32
#include "buildvm_x86.h"
#elif defined(_WIN64)
#include "buildvm_x64win.h"
#else
#include "buildvm_x64.h"
#endif
#else
#error "No support for this architecture (yet)"
#endif