1
0
Fork
You've already forked malloc
0
What’s the deal with malloc? You’ve been using it since the piscine C but it’s not a system call. Find out the workings behind optimum memory management and recode it, as well as free and realloc.
  • Python 54.1%
  • C 27.8%
  • LLVM 6.6%
  • Makefile 5.9%
  • Nix 2.9%
  • Other 2.7%
xtrm 0ce9c43fd2 🔨 chore: we're doing this yippie
Signed-off-by: xtrm <oss@xtrm.me>
2025年12月08日 02:59:22 +01:00
include/ft 🚧 wip: block wrapping 2025年11月09日 07:53:56 +01:00
nix 🚧 wip: block wrapping 2025年11月09日 07:53:56 +01:00
src 🔨 chore: we're doing this yippie 2025年12月08日 02:59:22 +01:00
test 🔨 chore: codon compiler bug, wahoo 2025年12月08日 02:34:22 +01:00
test-codon 🔨 chore: codon compiler bug, wahoo 2025年12月08日 02:34:22 +01:00
.envrc feature: initial commit 2025年06月09日 21:58:32 +02:00
.gitignore 🔨 chore: we're gonna have so much fun. 2025年08月11日 06:33:46 +02:00
development.mk feature: initial commit 2025年06月09日 21:58:32 +02:00
flake.lock 🚧 wip: block wrapping 2025年11月09日 07:53:56 +01:00
flake.nix 🔨 chore: we're gonna have so much fun. 2025年08月11日 06:33:46 +02:00
gensources.sh 🔨 chore: we're gonna have so much fun. 2025年08月11日 06:33:46 +02:00
le-debug.py 🔨 chore: we're doing this yippie 2025年12月08日 02:59:22 +01:00
LICENSE feature: initial commit 2025年06月09日 21:58:32 +02:00
Makefile 🚧 wip: working through the structure a bit 2025年09月15日 00:13:13 +02:00
README.md 📝 doc(README.md): add disclaimer 2025年09月11日 17:43:47 +02:00
rebuild.sh 🔨 chore: codon compiler bug, wahoo 2025年12月08日 02:34:22 +01:00
run.sh feature: first working implementation, really simple mmap/munmap, but it's hillarious 2025年08月22日 01:51:02 +02:00
shell.nix 🔨 chore: codon compiler bug, wahoo 2025年12月08日 02:34:22 +01:00
size.sh feature: first working implementation, really simple mmap/munmap, but it's hillarious 2025年08月22日 01:51:02 +02:00
sources.mk 🔨 chore: brain fog is strong with this one 2025年09月21日 15:43:43 +02:00
TODO.md 🔨 chore: we're doing this yippie 2025年12月08日 02:59:22 +01:00

malloc

A note towards the RNCP Committee

If you decide not to validate this project, i'd understand lol, but you gotta admit the subject wasn't very clear about that

I have other projects that could validate this RNCP category so feel free to check them out instead, but I hope I've given you a good laugh <3

How to compile

Developer Environment

This project provides its required dependencies in a development environment via Nix.
You can use it in different ways:

nix-shell command

Simply run nix-shell in the directory with a recent nixpkgs channel, and it will spawn you a shell with the proper environment.

nix develop

The modern nix-command flake-y equivalent to nix-shell, simply run nix develop and the shell will appear.

direnv

A .envrc file is provided for convenience, that will automatically update your shell environment using the nix flake.

Compiling

Simply run the provided Makefile and it'll compile and link the libft_malloc_$(HOSTTYPE).so dynamic/shared library.

License

This project is licensed under the ISC License.