memory-allocator/README.md

28 lines
536 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
- run the executable
2024-02-12 17:47:33 +00:00
- 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.
2024-02-11 00:36:54 +00:00
- confirm (y)
- wait for the program to allocate the memory
- your memory is allocated
2024-02-12 01:40:58 +00:00
- press ENTER or CTRL+C to free the memory and exit the program
2024-02-11 00:36:54 +00:00
- ???
- profit
## how to compile
- get a c compiler (i use gcc)
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