Git Product home page Git Product logo

Comments (6)

w4454962 avatar w4454962 commented on May 19, 2024

If the compiler saves the string assembly and uses asmjit+asmtk to compile and load the string assembly into memory in real time at runtime, this idea can be realized. However, the compilation speed seems to be slow, and some implementations in function nodes cannot be used.

from asmjit.

w4454962 avatar w4454962 commented on May 19, 2024

When using "logger" and asmtk, there is no way to convert the address back to the original string symbol and compile the result generated by the logger

from asmjit.

ZehMatt avatar ZehMatt commented on May 19, 2024

You can already do this yourself if you are using the Builder, you can just traverse all nodes and save them to disk and when you load the file you just create the nodes again.

from asmjit.

kobalicek avatar kobalicek commented on May 19, 2024

True, the only way is to serialize and deserialize the content yourself. The reason is that I would like to not deal with compatibility of the serialized content (versions, new features, etc...), so this is supposed to be done by users. I think that maybe caching the content of your upper layer that generates the code would be much better / easier than caching the nodes - depends on the number of nodes, but I don't really see a big overhead here - you can create the nodes at a lighting speed, and even if you load them from a file, you have to create them anyway.

BTW logger is not a proper tool for serializing the content - it's purpose is to log something, but not immediately log it in a format that is then parseable by asmtk or other assemblers.

from asmjit.

paule32 avatar paule32 commented on May 19, 2024

from asmjit.

w4454962 avatar w4454962 commented on May 19, 2024

In other words, I need to implement a compilation process similar to the generation and parsing of "llvm IR" intermediate bytecode, and input the intermediate code to the asmjit compiler to finally generate the machine code.

Well, I can't think of any more scientific way.

from asmjit.

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.