Giter Site home page Giter Site logo

physical-allocators's Introduction

Nanobyte physical allocators

Some physical memory allocator implementations.

Build instructions

The project only needs g++ and make for building. To build, simply open a terminal and type

make

Visualizers

Visualizers are Python scripts that can take the output generated by the XXXXAllocator.Dump() method and turn it into an image.

Most of them depend on the cairo library (install it with PIP. E.g. sudo pip3 install cairo). The Linked List visualizer also depends on the graphviz python library, as well as the graphviz package from your package manager.

The way I used them was to modify the demo project, and set up whatever scenario I want to visualize. Finally I call Dump() and pipe the output into the visualizer. For example:

run-demo.sh | python ./bitmap_visualize.py

Obviously, you must not print anything else to the standard output (use stderr if you really have to).

Project structure

  • src/phallocators - this is a static library where the physical allocators are actually implemented
  • src/demo - a demo application showing how to use the allocators
  • src/tests - some unit tests for verifying that the physical allocators work properly
  • visualizers - a bunch of python scripts for creating pretty pictures showing the state of the allocators

physical-allocators's People

Contributors

chibicitiberiu avatar

Stargazers

 avatar Trey Tomes avatar

Watchers

 avatar

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.