News for hackers. Stuff that matters.
Re:Asmttpd – Web server for Linux written in amd64 assembly by ataylor284_ on Tuesday May 19, 2015 @06:54PM (#9573667)
I remember one program that had a string print subroutine that took zero args. It just used the return address from the stack to grab the nul-terminated string immediately following the JSR/CALL instruction. It then patched the return address on stack to return just after the nul.

Bad for storing data in .text, but still a neat hack that shaved whole tens of bytes off the program size.

There are no comments on this comment yet.