Compiling TDE