Affiliation:
1. MPI-SP, Bochum, Germany
2. Alexandru Ioan Cuza University Iaşi, Iasşi, Romania
3. Max Planck Institute for Software Systems, Saarbrücken, Germany
4. Stanford, USA and CISPA Helmholz Center for Information Security, Saarbrücken, Germany
5. University of Chile, Chile
Abstract
Compiler correctness, in its simplest form, is defined as the inclusion of the set of traces of the compiled program in the set of traces of the original program. This is equivalent to the preservation of all trace properties. Here, traces collect, for instance, the externally observable events of each execution. However, this definition requires the set of traces of the source and target languages to be the same, which is not the case when the languages are far apart or when observations are fine-grained. To overcome this issue, we study a generalized compiler correctness definition, which uses source and target traces drawn from potentially different sets and connected by an arbitrary relation. We set out to understand what guarantees this generalized compiler correctness definition gives us when instantiated with a non-trivial relation on traces. When this trace relation is not equality, it is no longer possible to preserve the trace properties of the source program unchanged. Instead, we provide a generic characterization of the target trace property ensured by correctly compiling a program that satisfies a given source property, and dually, of the source trace property one is required to show to obtain a certain target property for the compiled code. We show that this view on compiler correctness can naturally account for undefined behavior, resource exhaustion, different source and target values, side channels, and various abstraction mismatches. Finally, we show that the same generalization also applies to many definitions of
secure
compilation, which characterize the protection of a compiled program linked against adversarial code.
Funder
European Research Council
German Federal Ministry of Education and Research
DARPA
Office of Naval Research
Accountable Protocol Customization
UAIC
Publisher
Association for Computing Machinery (ACM)
Reference83 articles.
1. A core calculus of dependency
2. Secure compilation (Dagstuhl seminar 18201);Ahmed Amal;Dagstuhl Rep.,2018
Cited by
5 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献