Generate a thread function with no maps.
Generate compiling code with thread functions and maps.