GithubHelp home page GithubHelp logo

Cleanup code about keystone HOT 2 OPEN

keystone-engine avatar keystone-engine commented on May 22, 2024
Cleanup code

from keystone.

Comments (2)

iksteen avatar iksteen commented on May 22, 2024

I've been looking into this, there are a couple of relatively easy targets (eg. MachO and COFF writers which are irrelevant because keystone only uses a patched up version of the ELF writer which in turn makes all code dealing with the ObjectFormat part of Triple redundant).

There are also some harder targets such as debug info generation (DWARF/CodeView output and code dealing with call frame information and exception handling code) that's pretty much weaved into the rest of the code. Removing those would mean quite a few directives stop working which never made sense in the context of keystone in the first place (things like .loc).

Having all that out of the way opens paths for further code reduction such as the file handling (unless you want to maintain compatibility with the .include directive), getting rid of ELF section management (since keystone only cares about .text anyway.

I started doing some of this work in a branch: https://github.com/iksteen/keystone-beta/commits/clean-unused maybe you could have a look at it?

from keystone.

aquynh avatar aquynh commented on May 22, 2024

i think your "easy targets" can be considered first. could you make a PR?

from keystone.

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.