I wrote a technical blog post about my experimentation a few months ago. I've just adapted the content to youtube, so you can choose the format you enjoy the most:
https://laurent.le-brun.eu/blog/making-a-game-on-a-custom-bytecode-vm-in-7-days-and-3kb
Things mentioned:
- how to make an executable smaller than 10kB
- other size-coding tricks
- building a small compiler + bytecode interpreter
(the project was done last year, but sometimes it takes time to prepare the making-of content)