Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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

It only surfaced when compiling the codebase with clang (previously gcc). Took quite some digging to find the problem.



Great analysis, indeed. I miss one thing though: what was causing the incomplete printing of 'Testing' in the loop?


That'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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: