An ongoing C compiler which generates self-modifying code. Here is a previous attempt written in Koka.