jackwadden / VASim

VASim is a virtual homogeneous non-deterministic finite automata automata simulator and transformation tool. VASim can parse, transform, simulate, and profile homogeneous NFAs, and is meant to be an open tool for automata processing research. VASim can also be extended to support hypothetical automata processing elements.
BSD 3-Clause "New" or "Revised" License
35 stars 20 forks source link

How to compile the ARM ISA #35

Closed cupyty closed 6 years ago

cupyty commented 6 years ago

Nice to meet you. I'm going to use the VASim in arm architecture. but I only make the VASim for X86 ISA. How can I do for VAsim in ARM ISA?

jackwadden commented 6 years ago

I don't see why this wouldn't be possible. I don't think VASim (or any dependencies) has any x86 specific code. I don't have access to an ARM system, so I can't verify this though.

Currently VASim is a little difficult to build even on x86 Linux because MRNL/valijson has some preprocessor macros that are only available in C++17. This is why we require g++-5. By deleting those macros you can compile with gcc-4.6+ I believe. For your project, I expect you'll have to change some stuff around in the Makefiles of VASim and the dependencies, but with a little hacking it should work.

Have you tried yet? Are there any errors you're getting I can take a look at.

Let me know how it goes!

cupyty commented 6 years ago

Thanks to your response. I'll use the VASim as a benchmark of the gem5 simulation tool. but the gem5 simulation's configuration consists of ARM architecture. so I have one questions about using cross compiler such as arm-linux-gnueabi-g++. How about think? -----Original Message----- From: "Jack Wadden"notifications@github.com To: "jackwadden/VASim"VASim@noreply.github.com; Cc: "cupyty"cupyty@naver.com; "Author"author@noreply.github.com; Sent: 2018-08-10 (금) 22:39:02 Subject: Re: [jackwadden/VASim] How to compile the ARM ISA (#35)

I don't see why this wouldn't be possible. I don't think VASim (or any dependencies) has any x86 specific code. I don't have access to an ARM system, so I can't verify this though. Currently VASim is a little difficult to build even on x86 Linux because MRNL/valijson has some preprocessor macros that are only available in C++17. This is why we require g++-5. By deleting those macros you can compile with gcc-4.6+ I believe. For your project, I expect you'll have to change some stuff around in the Makefiles of VASim and the dependencies, but with a little hacking it should work. Have you tried yet? Are there any errors you're getting I can take a look at. Let me know how it goes! — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

ted-xie commented 6 years ago

@cupyty I have successfully compiled VASim for Arm before on a Raspberry pi using GCC. It should work 100%.

jackwadden commented 6 years ago

Sweet. Thanks for the info @ted-xie!

Closing.