TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Autopsy of GCC 4.6.3 compiler bug on Raspberry Pi

39 pointsby quentusrexalmost 11 years ago

3 comments

mehrdadaalmost 11 years ago
(Shameless plug:) It would be great if someone would leverage the pretty successful technique (i.e. found a couple hundred bugs in GCC and Clang) we recently devised to detect miscompilations, <i>Compiler Validation via Equivalence Modulo Inputs</i>[1], to test ARM compilers.<p>In short, the idea is: profile a program running on a specific input; mutate the unexecuted code with respect to that input; compile and execute the mutated program and expect the output to be identical given the input.<p>[1]: <a href="http://mehrdadafshari.com/emi/paper.pdf" rel="nofollow">http:&#x2F;&#x2F;mehrdadafshari.com&#x2F;emi&#x2F;paper.pdf</a>
评论 #7905300 未加载
评论 #7894653 未加载
评论 #7893564 未加载
评论 #7894272 未加载
评论 #7894372 未加载
gumbyalmost 11 years ago
This is only a side point, but I wrote objdump (any objcopy) mainly as a debugging aid when starting to implement bfd. We included it for people porting bfd, rather than as a normal user program.<p>Thus it is weird, though gratifying, to see it actually used for real work. In fact I use it instead of nm, size, etc but I thought I might be the only one!
评论 #7893514 未加载
评论 #7894536 未加载
评论 #7893942 未加载
评论 #7894016 未加载
评论 #7894612 未加载
评论 #7893572 未加载
评论 #7893638 未加载
jallmannalmost 11 years ago
What&#x27;s also interesting is running FreeSWITCH on a RPi. Last time I tried to compile FS on a i686&#x2F;512MB host [1], GCC OOM&#x27;d during linking. And I can&#x27;t imagine cross-compiling, mostly because I just spent a day fighting an APR cross-compile [2] from x86 to ARM.<p>But I digress.. awesome bit of detective work in the article. Compiler bugs are really frustrating&#x2F;tedious to root out, especially if you don&#x27;t usually muck around with asm.<p>[1] Underpowered according to FS&#x27;s own recommended specs.<p>[2] FS also uses APR, but I&#x27;m just bitter that it&#x27;s virtually impossible to cross-compile the Apache <i>Portable</i> Runtime out of the box...
评论 #7893714 未加载