Comments (6)
@astocko Please let me know if you have an easy way :-)
from raptorjit.
@lukego We're doing some refactoring in dynasm-rs and I haven't pushed the XED parser and opmap generator yet. I'll do that end of week and include a luajit dynasm map_op generator as well. I'll follow up asap.
from raptorjit.
@astocko Sounds awesome! There is no rush on my side, I only want to make sure you know that there is interest in your work when it is ready :).
I will need to work out how to use nix to manage a dependency on a Rust application but hopefully this is straightforward.
from raptorjit.
@lukego I ended up getting really bogged down with work the past two months, but I've come back to the project now and also rewrote the parser in python3 after some feedback. It doesn't support the full DSL, since the DSL mixes ISA definitions with XED specific C based code generators for encoding/decoding. I'll open source it in the next few days after some cleanup.
For dynasm-rs, we just dump the full ISA. What type of output do you want for dynasm? From a cursory look, it seems to be a bit more picky.
from raptorjit.
@astocko Good question. How does your ISA dump look?
Guessing it will make sense for the RaptorJIT DynASM to parse your ISA dump file directly, possibly after a preprocessing step e.g. if it's based on XML then I could translate it to something that's easier to parse without dependencies.
Guessing we can retire DynASM's own native instruction format, the strings like mov_2 = "OR:A3o|RO:A1O|mr:89Rm|rm:8BrM|rib:nB0ri|ridw:B8ri|mi:C70mi"
, since we are not writing the definitions by hand anymore and don't need a concise encoding.
Note: I have not looked closely at Intel XED at all so I am not exactly sure where XED ends and dynasm-rs starts. If you can show me how your ISA dump looks, and I can compare this with what you get from XED, then it will probably all become clearer for me :).
from raptorjit.
Guessing it will make sense for the RaptorJIT DynASM to parse your ISA dump file directly
On second thought, also very likely that it makes sense to use some external tool to translate the ISA dump into Lua source. That's what I did with the PMU counter definitions, which Intel provided as a TSV file and then my awk script translates into Lua source.
from raptorjit.
Related Issues (20)
- Idea: Remove Lua C-API HOT 41
- Philosophy: Who is RaptorJIT for? HOT 1
- RaptorJIT language side evolution and Lua compatibility HOT 3
- A world on FFI HOT 6
- Benchmark: FFI
- Idea: Separate snapshot for each function call
- raptorjit release version confusion HOT 2
- Idea: Write Lua parser and bytecode compiler in Lua HOT 19
- Question: How to send relevant fixes to LuaJIT?
- Document VM bootstrap, code generation, build process HOT 2
- Idea: CNEWI sinking across trace boundaries HOT 4
- Demo: Over 50x slowdown on pointer arithmetic due to single branch
- Windows support HOT 2
- Openresty HOT 8
- Optimization: lambda lifting HOT 7
- Initial port of RaptorJIT bytecode interpreter to C
- Filling the gap with Lua 5.3 HOT 2
- Apply to GitHub sponsorship HOT 3
- LuaJIT/RaptorJIT at FOSDEM 2020?
- Linking failed on ArchLinux HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raptorjit.