Worth checking out https://github.com/fosslinux/live-bootstrap which starts from a handwritten hex bootloader and later a Scheme interpreter that implements a C compiler that compiles tcc
Full steps on https://github.com/fosslinux/live-bootstrap/blob/master/part...