Abstract
The emergence of new architectures create a recurring challenge to ensure that existing programs still work on them. Manually porting legacy code is often impractical. Static binary translation (SBT) is a process where a program’s binary is automatically translated from one architecture to another, while preserving their original semantics. However, these SBT tools have limited support to various advanced architectural features. Importantly, they are currently unable to translate concurrent binaries. The main challenge arises from the mismatches of the memory consistency model specified by the different architectures, especially when porting existing binaries to a weak memory model architecture.
In this paper, we propose Lasagne, an end-to-end static binary translator with precise translation rules between x86 and Arm concurrency semantics. First, we propose a concurrency model for Lasagne’s intermediate representation (IR) and formally proved mappings between the IR and the two architectures. The memory ordering is preserved by introducing fences in the translated code. Finally, we propose optimizations focused on raising the level of abstraction of memory address calculations and reducing the number offences. Our evaluation shows that Lasagne reduces the number of fences by up to about 65%, with an average reduction of 45.5%, significantly reducing their runtime overhead.
In this paper, we propose Lasagne, an end-to-end static binary translator with precise translation rules between x86 and Arm concurrency semantics. First, we propose a concurrency model for Lasagne’s intermediate representation (IR) and formally proved mappings between the IR and the two architectures. The memory ordering is preserved by introducing fences in the translated code. Finally, we propose optimizations focused on raising the level of abstraction of memory address calculations and reducing the number offences. Our evaluation shows that Lasagne reduces the number of fences by up to about 65%, with an average reduction of 45.5%, significantly reducing their runtime overhead.
Original language | English |
---|---|
Title of host publication | Proceedings of the 43rd ACM SIGPLAN International Conference on Programming Language Design and Implementation (PLDI 2022) |
Publisher | ACM |
Pages | 888–902 |
Number of pages | 15 |
ISBN (Print) | 9781450392655 |
DOIs | |
Publication status | Published - 9 Jun 2022 |
Event | 43rd ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI 2022) - San Diego, United States Duration: 13 Jun 2022 → 17 Jun 2022 Conference number: 43 https://pldi22.sigplan.org/ |
Conference
Conference | 43rd ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI 2022) |
---|---|
Abbreviated title | PLDI 2022 |
Country/Territory | United States |
City | San Diego |
Period | 13/06/22 → 17/06/22 |
Internet address |
Keywords
- Binary translation
- Memory model
- Compiler
Fingerprint
Dive into the research topics of 'Lasagne: a static binary translator for weak memory model architectures'. Together they form a unique fingerprint.Datasets
-
Lasagne: A Static Binary Translator for Weak Memory Model Architectures
Rocha, R. (Creator), Sprokholt, D. (Creator), Fink, M. (Creator), Gouicem, R. (Creator), Spink, T. (Creator), Chakraborty, S. (Creator) & Bhatotia, P. (Creator), Zenodo, 2022
Dataset
-
[Artifact] Lasagne: A Static Binary Translator for Weak Memory Model Architectures
Rocha, R. (Creator), Sprokholt, D. (Creator), Fink, M. (Creator), Gouicem, R. (Creator), Spink, T. (Creator), Chakraborty, S. (Creator) & Bhatotia, P. (Creator), Zenodo, 2022
Dataset