|
|
|
|
|
by haberman
5216 days ago
|
|
Out of curiosity, if someone paid you to find compiler bugs for a day, how would you go about it? (I've found several missed-optimization bugs in gcc, but I found them while working on a project where I examine assembly frequently; I have no idea how I'd go about looking for a compiler bug). |
|
While I don't consider missed optimisations bugs as such, they are easy to find. Simply compile some non-trivial function and look at the output. There's usually something that could be done better, especially if some exotic instruction can be used.
[1] http://embed.cs.utah.edu/csmith/ [2] http://libav.org/