GithubHelp home page GithubHelp logo

CC65 about huffmunch HOT 5 CLOSED

valdirSalgueiro avatar valdirSalgueiro commented on June 21, 2024
CC65

from huffmunch.

Comments (5)

bbbradsmith avatar bbbradsmith commented on June 21, 2024

danger/test contains a C project I used for testing, there's a small assembly wrapper in test.s that makes the huffmunch decompression library available to the test program (test.c)

I'll consider moving that wrapper to the root, though, to make integration with C programs easier

from huffmunch.

bbbradsmith avatar bbbradsmith commented on June 21, 2024

Hmm, not sure if I can really make an easy C integration. The problem is that it needs an allocation on the zero page, and the default CFG for most platforms restrict the size of their ZP segment, so you couldn't actually use it without at least a hand-created CFG.

Hmm, maybe I could have the C implementation temporarily copy the ZP variables over the built-in C ones, but it would add significant performance overhead... :( Well, maybe I can do that but with a note in the source about how to make it better with a custom CFG.

from huffmunch.

bbbradsmith avatar bbbradsmith commented on June 21, 2024

I've created the wrapper described. The test program again provides an example of how to use it. Please let me know what you think.

Should work even without a custom CFG. The performance was only 20% worse in the end, but I left an option to override it manually and get that performance back.

(Self reminder: bump version to 1.5 and tag a new release when closing this.)

from huffmunch.

valdirSalgueiro avatar valdirSalgueiro commented on June 21, 2024

wow that was fast :D

will give a try asap!

from huffmunch.

bbbradsmith avatar bbbradsmith commented on June 21, 2024

Have finally released 1.5 which includes the C wrapper.

from huffmunch.

Related Issues (1)

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.