The book _The Linux Programming Interface_ chapter 5 offers better ways to deal with temporary files and to feed files to `nasm` via `stdin`.
The book The Linux Programming Interface chapter 5 offers better ways to deal with temporary files and to feed files to
nasmviastdin.