16 ms·
Great analysis and tenacity in hunting this one down :) Letting new compilers loose on existing codebases is always fun and you learn lots of things in the pro
by mrich 13y ago
Great analysis and tenacity in hunting this one down :)
Letting new compilers loose on existing codebases is always fun and you learn lots of things in the process, I can only recommend it. I debugged a problem once that also had to do with interfacing runtime-generated code with compiletime-generated code. There were differences in the expectations of the ABI, which is described in this bug:
http://llvm.org/bugs/show_bug.cgi?id=12207 http://llvm.org/bugs/show_bug.cgi?id=12207
It only surfaced when compiling the codebase with clang (previously gcc). Took quite some digging to find the problem.
- Bootvis 13y agoGreat analysis, indeed. I miss one thing though: what was causing the incomplete printing of 'Testing' in the loop?
- mikeash 13y agoThat's a good question. I just attributed that to general corruption during the run, but never checked it out in detail. Presumably the calculation of the string pointer was sometimes being offset by a few bytes somehow, but I don't know exactly why.