Code from the book "fork() as Weapons of Mass Destruction"
NASM compiler was used to run the code.
Assembly parameters:
without optimize methods
nasm -f elf fork_bomb_linux.asm
gcc -m32 fork_bomb_linux.o -o fork_bomb_linux
with size optimize methods
nasm -f elf fork_bomb_linux.asm
gcc -m32 -Os -s -g0 -fdata-sections -ffunction-sections -W --data-sections -fno-asynchronous-unwind-tables fork_bomb_linux.o -o fork_bomb_linux
Build platform only Linux.