Following the guidelines posted here:
https://www.mobileread.com/forums/sho...d.php?t=186007 I was able to compile the Glulxe 0.5.1 interactive fiction interpreter (
http://www.eblong.com/zarf/glulx/) for the Kindle Paperwhite.
It needs
KTerm to run. (
http://www.fabiszewski.net/kindle-terminal/)
Update 1: Optimized build options for Kindle.