I have been programming for a very long time and have been involved in all sorts of nasty tricks to fit things in memory (self modifying code, code that uses subroutines from the OS to save having duplicates in its own base, code that relocates itself while running, storing tiny amounts of code in 'free space' inside the BIOS, temporarily storing code in screen memory because there's nowhere else to go and you hope the user won't notice the funny image on screen, etc.)
I have been programming for a very long time and have been involved in all sorts of nasty tricks to fit things in memory (self modifying code, code that uses subroutines from the OS to save having duplicates in its own base, code that relocates itself while running, storing tiny amounts of code in 'free space' inside the BIOS, temporarily storing code in screen memory because there's nowhere else to go and you hope the user won't notice the funny image on screen, etc.)