Manuel Rigger, Stefan Marr, Bram Adams et Hanspeter Mössenböck
Communication écrite (2019)
Un lien externe est disponible pour ce documentAbstract
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.
Mots clés
| Matériel d'accompagnement: | |
|---|---|
| Département: | Département de génie informatique et génie logiciel |
| Organismes subventionnaires: | Oracle |
| ISBN: | 9781450355728 |
| URL de PolyPublie: | https://publications.polymtl.ca/44286/ |
| Nom de la conférence: | 27th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE 2019) |
| Lieu de la conférence: | Tallinn, Estonia |
| Date(s) de la conférence: | 2019-08-26 - 2019-08-30 |
| Maison d'édition: | ACM |
| DOI: | 10.1145/3338906.3338907 |
| URL officielle: | https://doi.org/10.1145/3338906.3338907 |
| Date du dépôt: | 18 avr. 2023 15:02 |
| Dernière modification: | 27 janv. 2026 10:03 |
| Citer en APA 7: | Rigger, M., Marr, S., Adams, B., & Mössenböck, H. (août 2019). Understanding GCC builtins to develop better tools [Communication écrite]. 27th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE 2019), Tallinn, Estonia. https://doi.org/10.1145/3338906.3338907 |
|---|---|
Statistiques
Dimensions
