News for hackers. Stuff that matters.
Re:Author of LuaJIT explains why compilers can't beat hand-c... by kenjackson on Thursday May 26, 2011 @06:47PM (#2589706)
That's the longest handwritten function I think I've ever seen :-)

I don't know what limits the compiler imposes, but I wouldn't be surprised if you hit them.

Re:Author of LuaJIT explains why compilers can't beat hand-c... by iam on Friday May 27, 2011 @12:19AM (#2590416)
That's definitely the problem, compiler optimizations are easily O(N^2) on the # of operations in a function, so rather than taking forever to compile they'll turn off optimization if it takes too long.

Ask yourself, do you even need a function that large? You might already be approaching the limits of the L1 cache, at which point you might as well be using separate functions since the call itself will be negligible to the cache miss.