update readme

This commit is contained in:
ari melody 2024-02-12 17:47:33 +00:00
parent 431c198138
commit 6204419407
Signed by: ari
GPG key ID: CF99829C92678188

View file

@ -1,11 +1,13 @@
# memory allocator
it allocates memory *(in gibibytes (GiB))*
it allocates memory
## how to use
- run the executable
- enter how many gibibytes you want (max is how many gibibytes of memory you have...or more!)
- 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
@ -16,7 +18,7 @@ it allocates memory *(in gibibytes (GiB))*
## how to compile
- get a c compiler (i use gcc)
- `gcc -o ./allocatememory ./main.c`
- `gcc -o ./allocatememory -O2 ./main.c`
- ???
- profit