Tag: 32bit 64bit

编译32位系统上的node.js

我需要在32位系统上编译node.js以与我已有的代码兼容。 我从nodejs.org的源代码开始编译它。 然后,我开始通过改变common.gypi文件中的第164-166行。 它是: 164 [ 'target_arch=="x64"', { 165 'cflags': [ '-m64' ], 166 'ldflags': [ '-m64' ], 167 }], 现在是: 164 [ 'target_arch=="x64"', { 165 'cflags': [ '-m32' ], 166 'ldflags': [ '-m32' ], 167 }], 当我试图再次,我得到这些错误: ../deps/v8/src/execution.h:259:错误:整数常量对于“长”types来说太大../deps/v8/src/execution.h:260:错误:整型常量太大'long'type ../deps/v8/src/execution.h:259:error:函数调用不能出现在常量expression式中../deps/v8/src/execution.h:260:error:a function调用不能出现在一个常量expression式中 这些错误是指这些行: #ifdef V8_TARGET_ARCH_X64 static const uintptr_t kInterruptLimit = V8_UINT64_C(0xfffffffffffffffe); static const uintptr_t kIllegalLimit = […]