GithubHelp home page GithubHelp logo

Comments (6)

lukego avatar lukego commented on May 26, 2024

@astocko Please let me know if you have an easy way :-)

from raptorjit.

astocko avatar astocko commented on May 26, 2024

@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.

lukego avatar lukego commented on May 26, 2024

@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.

astocko avatar astocko commented on May 26, 2024

@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.

lukego avatar lukego commented on May 26, 2024

@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.

lukego avatar lukego commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.