An Analysis of x86-64 Inline Assembly in C Programs
Autor: | Manuel Rigger, Stefan Marr, Hanspeter Mössenböck, David Leopoldseder, Stephen Kell |
---|---|
Rok vydání: | 2018 |
Předmět: |
Multi-core processor
Semantics (computer science) Programming language Computer science 05 social sciences 050301 education 020207 software engineering 02 engineering and technology Q1 computer.software_genre Computer Graphics and Computer-Aided Design 020202 computer hardware & architecture Inline assembler 0202 electrical engineering electronic engineering information engineering Code (cryptography) x86 Compiler Control (linguistics) 0503 education computer Software |
Zdroj: | VEE |
ISSN: | 1558-1160 0362-1340 |
Popis: | C codebases frequently embed nonportable and unstandardized elements such as inline assembly code. Such elements are not well understood, which poses a problem to tool developers who aspire to support C code. This paper investigates the use of x86-64 inline assembly in 1264 C projects from GitHub and combines qualitative and quantitative analyses to answer questions that tool authors may have. We found that 28.1% of the most popular projects contain inline assembly code, although the majority contain only a few fragments with just one or two instructions. The most popular instructions constitute a small subset concerned largely with multicore semantics, performance optimization, and hardware control. Our findings are intended to help developers of C-focused tools, those testing compilers, and language designers seeking to reduce the reliance on inline assembly. They may also aid the design of tools focused on inline assembly itself. |
Databáze: | OpenAIRE |
Externí odkaz: |