28 lines
536 B
Markdown
28 lines
536 B
Markdown
# memory allocator
|
|
|
|
it allocates memory
|
|
|
|
## how to use
|
|
|
|
- run the executable
|
|
- enter how much memory you want to allocate
|
|
- i.e. "1g" = 1 GiB = 1073741824 bytes
|
|
- the limit is how much memory you have...or more. your funeral.
|
|
- confirm (y)
|
|
- wait for the program to allocate the memory
|
|
- your memory is allocated
|
|
- press ENTER or CTRL+C to free the memory and exit the program
|
|
- ???
|
|
- profit
|
|
|
|
## how to compile
|
|
|
|
- get a c compiler (i use gcc)
|
|
- `gcc -o ./allocatememory -O2 ./main.c`
|
|
- ???
|
|
- profit
|
|
|
|
## why
|
|
|
|
i was bored
|