update readme

This commit is contained in:
ari melody 2024-02-13 03:19:25 +00:00
parent aa8d58a5db
commit cda29dd317
Signed by: ari
GPG key ID: CF99829C92678188

View file

@ -4,20 +4,20 @@ it allocates memory
## how to use ## how to use
- run the executable ```
- enter how much memory you want to allocate usage: allocatememory -b <bytes> [-o <output file>] [-s]
- i.e. "1g" = 1 GiB = 1073741824 bytes
- the limit is how much memory you have...or more. your funeral. OPTIONS
- confirm (y) -h displays help
- wait for the program to allocate the memory -b number of bytes to allocate (e.g. 1024, 1g, 64K)
- your memory is allocated -o file to output to
- press ENTER or CTRL+C to free the memory and exit the program -s run silently (requires -b and -o)
- ??? -w disable warnings ("i know what i'm doing!")
- profit ```
## how to compile ## how to compile
- get a c compiler (i use gcc) - get a c compiler (i use gcc or clang)
- `gcc -o ./allocatememory -O2 ./main.c` - `gcc -o ./allocatememory -O2 ./main.c`
- ??? - ???
- profit - profit