Understanding GCC Builtins to Develop Better Tools

July 01, 2019 Β· Entered Twilight Β· πŸ› ESEC/SIGSOFT FSE

πŸŒ… TWILIGHT: Old Age
Predates the code-sharing era β€” a pioneer of its time

"No code URL or promise found in abstract"
"Code repo scraped from project page (backfill)"

Evidence collected by the PWNC Scanner

Repo contents: .DS_Store, ACCUMULO.csv, ACCUMULO, AMBARI.csv, AMBARI, CoreBench, Defects4J.csv, Defects4J, HADOOP.csv, HADOOP, JCR.csv, JCR, LUCENE.csv, LUCENE, OOZIE.csv, OOZIE, README.md, Statistical Testing of Previous Studies

Authors Manuel Rigger, Stefan Marr, Bram Adams, Hanspeter Mâssenbâck arXiv ID 1907.00863 Category cs.PL: Programming Languages Cross-listed cs.SE Citations 8 Venue ESEC/SIGSOFT FSE Repository https://github.com/justinwm/InduceBenchmark ⭐ 9 Last Checked 6 days ago
Abstract
C programs can use compiler builtins to provide functionality that the C language lacks. On Linux, GCC provides several thousands of builtins that are also supported by other mature compilers, such as Clang and ICC. Maintainers of other tools lack guidance on whether and which builtins should be implemented to support popular projects. To assist tool developers who want to support GCC builtins, we analyzed builtin use in 4,913 C projects from GitHub. We found that 37% of these projects relied on at least one builtin. Supporting an increasing proportion of projects requires support of an exponentially increasing number of builtins; however, implementing only 10 builtins already covers over 30% of the projects. Since we found that many builtins in our corpus remained unused, the effort needed to support 90% of the projects is moderate, requiring about 110 builtins to be implemented. For each project, we analyzed the evolution of builtin use over time and found that the majority of projects mostly added builtins. This suggests that builtins are not a legacy feature and must be supported in future tools. Systematic testing of builtin support in existing tools revealed that many lacked support for builtins either partially or completely; we also discovered incorrect implementations in various tools, including the formally verified CompCert compiler.
Community shame:
Not yet rated
Community Contributions

Found the code? Know the venue? Think something is wrong? Let us know!

πŸ“œ Similar Papers

In the same crypt β€” Programming Languages