memory-allocator/README.md

28 lines
466 B
Markdown
Raw Normal View History

2024-02-11 00:36:54 +00:00
# memory allocator
2024-02-12 17:47:33 +00:00
it allocates memory
2024-02-11 00:36:54 +00:00
## how to use
2024-02-13 03:19:25 +00:00
```
usage: allocatememory -b <bytes> [-o <output file>] [-s]
OPTIONS
-h displays help
-b number of bytes to allocate (e.g. 1024, 1g, 64K)
-o file to output to
-s run silently (requires -b and -o)
-w disable warnings ("i know what i'm doing!")
```
2024-02-11 00:36:54 +00:00
## how to compile
2024-02-13 03:19:25 +00:00
- get a c compiler (i use gcc or clang)
2024-02-12 17:47:33 +00:00
- `gcc -o ./allocatememory -O2 ./main.c`
2024-02-11 00:36:54 +00:00
- ???
- profit
## why
i was bored