An implementation of malloc(3)
in the Go programming language.
Disclaimer: this was created for educational purposes.
This program is intended to be used on a Unix system because it depends on the
unix
package.
Simply download / clone the repo then run:
$ cd path/to/repo
$ go build && ./malloc
Add implementation forfree(3)
- Add implementation for
realloc(3)
- Add implementation for
calloc(3)
- Allow for use in C using cgo
This program is free software, distributed under the terms of the [GNU] General Public License as published by the Free Software Foundation, version 3 of the License (or any later version). For more information, see the file LICENSE.