mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 20:44:37 +03:00
Reworked CpuInfo (removed X86CpuInfo, added ARM CpuInfo support).
Renamed CodeGen to ExternalTool. Moved logger constants from asmjit namespace to asmjit::Logger. Moved AssemblerFeature constants from asmjit namespace to asmjit::Assembler. Added noexcept to most APIs that are not intended to throw. Added memory utilities that can read/write to unaligned memory location (ongoing ARM support). Removed unimplemented instruction scheduler, will be added back when it's working.
This commit is contained in:
@@ -29,17 +29,18 @@ struct OpcodeDumpInfo {
|
||||
|
||||
static const char* archIdToString(uint32_t archId) {
|
||||
switch (archId) {
|
||||
case asmjit::kArchNone: return "None";
|
||||
case asmjit::kArchX86: return "X86";
|
||||
case asmjit::kArchX64: return "X64";
|
||||
case asmjit::kArchArm: return "ARM";
|
||||
case asmjit::kArchNone : return "None";
|
||||
case asmjit::kArchX86 : return "X86";
|
||||
case asmjit::kArchX64 : return "X64";
|
||||
case asmjit::kArchArm32: return "ARM32";
|
||||
case asmjit::kArchArm64: return "ARM64";
|
||||
default: return "<unknown>";
|
||||
}
|
||||
}
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
asmjit::FileLogger logger(stdout);
|
||||
logger.setOption(asmjit::kLoggerOptionBinaryForm, true);
|
||||
logger.addOptions(asmjit::Logger::kOptionBinaryForm);
|
||||
|
||||
OpcodeDumpInfo infoList[] = {
|
||||
# if defined(ASMJIT_BUILD_X86)
|
||||
|
||||
Reference in New Issue
Block a user