A platform independent memory allocator in Crystal
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Thog 6b9e5ea6e8
fix invalid call to LibC.sbrk in reserve_memory
5 years ago
src fix invalid call to LibC.sbrk in reserve_memory 5 years ago
.editorconfig Initial commit 5 years ago
.gitignore Initial commit 5 years ago
.travis.yml Initial commit 5 years ago
LICENSE Initial commit 5 years ago
Makefile Initial commit 5 years ago
README.md readme: fix a typo in the demo section 5 years ago
shard.yml Initial commit 5 years ago

README.md

cryloc

A platform independent memory allocator in Crystal.

For now, the implementation is based on a free list but more implementations will come in the future.

Demo

An implementation is provided for x86_64-*-linux-gnu. It's design as a malloc(3) replacement and provide a static and dynamic shared library.

See here for the implementation.

To build it, uses:

make

Installation

Add this to your application's shard.yml:

dependencies:
  cryloc:
    github: Thog/cryloc

Usage

require "cryloc"

TODO: Write usage instructions here

Development

TODO: Write development instructions here

Contributing

  1. Fork it (https://github.com/Thog/cryloc/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • Thog Thog - creator, maintainer