It's not even just code. I remember once writing a script to generate a large table, only to discover that GCC took forever to compile it as it appeared to have an n^2 time in the size of the file. That can't have been the optimiser because there were no functions. I think I ended up compiling that file with TCC.