Just out of curiosity, I stripped TeX source to a minimum from TeXLive build tree and compiled it successfully (it works in conjunction with
texlive-lang-english package installed on Debian 10).
You can get it from github.com/igor-liferenko/tex and compile by just typing
Now I would like to create an executable with preloaded format (like in the old days). For this I need to produce a memory dump of the running executable. It is said here that pressing C-\ must do the job. But it does not.
So, how does one produce a core dump? (Creating an executable out of it is not considered yet...)