{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,4,11]],"date-time":"2026-04-11T02:12:51Z","timestamp":1775873571791,"version":"3.50.1"},"reference-count":83,"publisher":"Association for Computing Machinery (ACM)","issue":"4","license":[{"start":{"date-parts":[[2021,11,10]],"date-time":"2021-11-10T00:00:00Z","timestamp":1636502400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"European Research Council","award":["715753"],"award-info":[{"award-number":["715753"]}]},{"name":"German Federal Ministry of Education and Research","award":["FKZ: 13N1S0762"],"award-info":[{"award-number":["FKZ: 13N1S0762"]}]},{"DOI":"10.13039\/100000185","name":"DARPA","doi-asserted-by":"crossref","award":["SSITH\/HOPE (FA8650-15-C-7558)"],"award-info":[{"award-number":["SSITH\/HOPE (FA8650-15-C-7558)"]}],"id":[{"id":"10.13039\/100000185","id-type":"DOI","asserted-by":"crossref"}]},{"DOI":"10.13039\/100000006","name":"Office of Naval Research","doi-asserted-by":"crossref","award":["N00014-18-1-2620"],"award-info":[{"award-number":["N00014-18-1-2620"]}],"id":[{"id":"10.13039\/100000006","id-type":"DOI","asserted-by":"crossref"}]},{"name":"Accountable Protocol Customization"},{"name":"UAIC","award":["07\/2018"],"award-info":[{"award-number":["07\/2018"]}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Program. Lang. Syst."],"published-print":{"date-parts":[[2021,12,31]]},"abstract":"<jats:p>\n            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\n            <jats:italic>secure<\/jats:italic>\n            compilation, which characterize the protection of a compiled program linked against adversarial code.\n          <\/jats:p>","DOI":"10.1145\/3460860","type":"journal-article","created":{"date-parts":[[2021,11,10]],"date-time":"2021-11-10T22:37:12Z","timestamp":1636583832000},"page":"1-48","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":12,"title":["An Extended Account of Trace-relating Compiler Correctness and Secure Compilation"],"prefix":"10.1145","volume":"43","author":[{"given":"Carmine","family":"Abate","sequence":"first","affiliation":[{"name":"MPI-SP, Bochum, Germany"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Roberto","family":"Blanco","sequence":"additional","affiliation":[{"name":"MPI-SP, Bochum, Germany"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"\u015etefan","family":"Ciob\u00e2c\u0103","sequence":"additional","affiliation":[{"name":"Alexandru Ioan Cuza University Ia\u015fi, Ias\u015fi, Romania"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Adrien","family":"Durier","sequence":"additional","affiliation":[{"name":"MPI-SP, Bochum, Germany"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Deepak","family":"Garg","sequence":"additional","affiliation":[{"name":"Max Planck Institute for Software Systems, Saarbr\u00fccken, Germany"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"C\u0103t\u0103lin","family":"Hri\u0163cu","sequence":"additional","affiliation":[{"name":"MPI-SP, Bochum, Germany"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-3411-9678","authenticated-orcid":false,"given":"Marco","family":"Patrignani","sequence":"additional","affiliation":[{"name":"Stanford, USA and CISPA Helmholz Center for Information Security, Saarbr\u00fccken, Germany"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"\u00c9ric","family":"Tanter","sequence":"additional","affiliation":[{"name":"University of Chile, Chile"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"J\u00e9r\u00e9my","family":"Thibault","sequence":"additional","affiliation":[{"name":"MPI-SP, Bochum, Germany"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2021,11,10]]},"reference":[{"key":"e_1_3_4_2_2","doi-asserted-by":"publisher","DOI":"10.1145\/292540.292555"},{"key":"e_1_3_4_3_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-44914-8_1"},{"key":"e_1_3_4_4_2","doi-asserted-by":"publisher","DOI":"10.1109\/CSF.2019.00025"},{"issue":"5","key":"e_1_3_4_5_2","first-page":"1","article-title":"Secure compilation (Dagstuhl seminar 18201)","volume":"8","author":"Ahmed Amal","year":"2018","unstructured":"Amal Ahmed, Deepak Garg, C\u0103t\u0103lin Hri\u0163cu, and Frank Piessens. 2018. Secure compilation (Dagstuhl seminar 18201). Dagstuhl Rep. 8, 5 (2018), 1\u201330. DOI:http:\/\/doi.org\/10.4230\/DagRep.8.5.1","journal-title":"Dagstuhl Rep."},{"key":"e_1_3_4_6_2","volume-title":"Proceedings of theCoqPL Workshop","author":"Anand Abhishek","year":"2017","unstructured":"Abhishek Anand, Andrew Appel, Greg Morrisett, Zoe Paraskevopoulou, Randy Pollack, Olivier Savary Belanger, Matthieu Sozeau, and Matthew Weaver. 2017. CertiCoq: A verified compiler for Coq. In Proceedings of theCoqPL Workshop. Retrieved from https:\/\/www.cs.princeton.edu\/appel\/papers\/certicoq-coqpl.pdf."},{"key":"e_1_3_4_7_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.scico.2003.06.002"},{"key":"e_1_3_4_8_2","doi-asserted-by":"publisher","DOI":"10.1145\/3371075"},{"key":"e_1_3_4_9_2","doi-asserted-by":"publisher","DOI":"10.1109\/CSF.2018.00031"},{"key":"e_1_3_4_10_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-54833-8_7"},{"key":"e_1_3_4_11_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10817-017-9439-z"},{"key":"e_1_3_4_12_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10817-014-9317-x"},{"key":"e_1_3_4_13_2","doi-asserted-by":"publisher","DOI":"10.1145\/2858949.2784733"},{"key":"e_1_3_4_14_2","article-title":"Translation validation for security properties","volume":"1901","author":"Busi Matteo","year":"2019","unstructured":"Matteo Busi, Pierpaolo Degano, and Letterio Galletta. 2019. Translation validation for security properties. CoRR abs\/1901.05082 (2019).","journal-title":"CoRR"},{"key":"e_1_3_4_15_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10817-018-9457-5"},{"key":"e_1_3_4_16_2","doi-asserted-by":"publisher","DOI":"10.1145\/2666356.2594301"},{"key":"e_1_3_4_17_2","article-title":"Microsoft: 70 percent of all security bugs are memory safety issues","author":"Cimpanu Catalin","year":"2019","unstructured":"Catalin Cimpanu. 2019. Microsoft: 70 percent of all security bugs are memory safety issues. ZDNet. Retrieved from https:\/\/www.zdnet.com\/article\/microsoft-70-percent-of-all-security-bugs-are-memory-safety-issues\/.","journal-title":"ZDNet"},{"key":"e_1_3_4_18_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-01465-9_4"},{"key":"e_1_3_4_19_2","doi-asserted-by":"publisher","DOI":"10.5555\/1891823.1891830"},{"key":"e_1_3_4_20_2","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(00)00313-3"},{"key":"e_1_3_4_21_2","doi-asserted-by":"publisher","DOI":"10.1145\/512950.512973"},{"key":"e_1_3_4_22_2","doi-asserted-by":"publisher","DOI":"10.1145\/567752.567778"},{"key":"e_1_3_4_23_2","doi-asserted-by":"publisher","DOI":"10.1145\/2914770.2837618"},{"key":"e_1_3_4_24_2","doi-asserted-by":"publisher","DOI":"10.5555\/2867541.2867769"},{"key":"e_1_3_4_25_2","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(85)90028-3"},{"key":"e_1_3_4_26_2","doi-asserted-by":"publisher","DOI":"10.3233\/JCS-1994\/1995-3103"},{"key":"e_1_3_4_27_2","doi-asserted-by":"publisher","DOI":"10.1016\/0167-6423(94)90006-X"},{"key":"e_1_3_4_28_2","doi-asserted-by":"publisher","DOI":"10.1145\/3175660"},{"key":"e_1_3_4_29_2","doi-asserted-by":"publisher","DOI":"10.1109\/SP.1982.10014"},{"key":"e_1_3_4_30_2","doi-asserted-by":"publisher","DOI":"10.1145\/3296979.3192381"},{"key":"e_1_3_4_31_2","doi-asserted-by":"publisher","DOI":"10.1145\/2976749.2978405"},{"key":"e_1_3_4_32_2","unstructured":"Heartbleed. 2014. The Heartbleed Bug. Retrieved from http:\/\/heartbleed.com\/."},{"key":"e_1_3_4_33_2","article-title":"Secure Compilation","author":"Hri\u0163cu C\u0103t\u0103lin","year":"2019","unstructured":"C\u0103t\u0103lin Hri\u0163cu, David Chisnall, Deepak Garg, and Mathias Payer. 2019. Secure Compilation. SIGPLAN PL Perspectives Blog. Retrieved from https:\/\/blog.sigplan.org\/2019\/07\/01\/secure-compilation\/.","journal-title":"SIGPLAN PL Perspectives Blog"},{"key":"e_1_3_4_34_2","doi-asserted-by":"publisher","DOI":"10.1145\/1926385.1926402"},{"key":"e_1_3_4_35_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-31987-0_29"},{"key":"e_1_3_4_36_2","doi-asserted-by":"publisher","DOI":"10.1109\/CSF.2016.11"},{"key":"e_1_3_4_37_2","doi-asserted-by":"publisher","DOI":"10.1145\/2813885.2738005"},{"key":"e_1_3_4_38_2","doi-asserted-by":"publisher","DOI":"10.1145\/2914770.2837642"},{"key":"e_1_3_4_39_2","doi-asserted-by":"publisher","DOI":"10.1145\/2914770.2837642"},{"key":"e_1_3_4_40_2","doi-asserted-by":"publisher","DOI":"10.5555\/647435.726394"},{"key":"e_1_3_4_41_2","article-title":"What Every C Programmer Should Know about Undefined Behavior #1\/3","author":"Lattner Chris","year":"2011","unstructured":"Chris Lattner. 2011. What Every C Programmer Should Know about Undefined Behavior #1\/3. LLVM Project Blog. (May 2011). Retrieved from http:\/\/blog.llvm.org\/2011\/05\/what-every-c-programmer-should-know.html.","journal-title":"LLVM Project Blog"},{"key":"e_1_3_4_42_2","doi-asserted-by":"publisher","DOI":"10.1145\/1538788.1538814"},{"key":"e_1_3_4_43_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10817-009-9155-4"},{"key":"e_1_3_4_44_2","unstructured":"Xavier Leroy. 2017. The formal verification of compilers (DeepSpec Summer School 2017). Retrieved from https:\/\/xavierleroy.org\/courses\/DSSS-2017\/."},{"key":"e_1_3_4_45_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-99725-4_17"},{"key":"e_1_3_4_46_2","doi-asserted-by":"publisher","DOI":"10.1145\/1190216.1190220"},{"key":"e_1_3_4_47_2","doi-asserted-by":"publisher","DOI":"10.1090\/psapm\/019\/0242403"},{"key":"e_1_3_4_48_2","doi-asserted-by":"publisher","DOI":"10.5555\/20081.20099"},{"key":"e_1_3_4_49_2","doi-asserted-by":"publisher","DOI":"10.5555\/539036"},{"key":"e_1_3_4_50_2","first-page":"51","volume-title":"Proceedings of 7th Annual Machine Intelligence Workshop, volume 7 of Machine Intelligence","author":"Milner Robin","year":"1972","unstructured":"Robin Milner and Richard Weyhrauch. 1972. Proving compiler correctness in a mechanized logic. In Proceedings of 7th Annual Machine Intelligence Workshop, volume 7 of Machine Intelligence. 51\u201372. Retrieved from http:\/\/www.cs.umd.edu\/hjs\/pubs\/compilers\/archive\/mi72-mil-wey.pdf."},{"key":"e_1_3_4_51_2","doi-asserted-by":"publisher","DOI":"10.1145\/512927.512941"},{"key":"e_1_3_4_52_2","doi-asserted-by":"publisher","DOI":"10.1145\/2980983.2908109"},{"key":"e_1_3_4_53_2","doi-asserted-by":"publisher","DOI":"10.1109\/CSF.2016.36"},{"key":"e_1_3_4_54_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-39322-9_1"},{"key":"e_1_3_4_55_2","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129598002552"},{"key":"e_1_3_4_56_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-31038-7_3"},{"key":"e_1_3_4_57_2","doi-asserted-by":"publisher","DOI":"10.1145\/2858949.2784764"},{"key":"e_1_3_4_58_2","doi-asserted-by":"publisher","DOI":"10.1145\/3022670.2951941"},{"key":"e_1_3_4_59_2","first-page":"150","volume-title":"Joint Proceedings of the 18th Italian Conference on Theoretical Computer Science and the 32nd Italian Conference on Computational Logic co-located with the IEEE International Workshop on Measurements and Networking IEEE M&N\u201917). (CEUR Workshop Proceedings)","volume":"1949","author":"Pasqua Michele","year":"2017","unstructured":"Michele Pasqua and Isabella Mastroeni. 2017. On topologies for (hyper)properties. In Joint Proceedings of the 18th Italian Conference on Theoretical Computer Science and the 32nd Italian Conference on Computational Logic co-located with the IEEE International Workshop on Measurements and Networking IEEE M&N\u201917). (CEUR Workshop Proceedings), Dario Della Monica, Aniello Murano, Sasha Rubin, and Luigi Sauro (Eds.), Vol. 1949. 150\u2013161. Retrieved from http:\/\/ceur-ws.org\/Vol-1949\/ICTCSpaper13.pdf."},{"key":"e_1_3_4_60_2","volume-title":"The Tome of Secure Compilation: Fully Abstract Compilation to Protected Modules Architectures","author":"Patrignani Marco","year":"2015","unstructured":"Marco Patrignani. 2015. The Tome of Secure Compilation: Fully Abstract Compilation to Protected Modules Architectures. Ph.D. Dissertation. KU Leuven, Leuven, Belgium. Retrieved from https:\/\/lirias.kuleuven.be\/bitstream\/123456789\/494704\/1\/thesis.pdf."},{"key":"e_1_3_4_61_2","unstructured":"Marco Patrignani. 2020. Why Should Anyone use Colours? or Syntax Highlighting Beyond Code Snippets. arxiv:cs.SE\/2001.11334 (2020)."},{"key":"e_1_3_4_62_2","doi-asserted-by":"publisher","DOI":"10.1145\/3280984"},{"key":"e_1_3_4_63_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.cl.2015.03.002"},{"key":"e_1_3_4_64_2","doi-asserted-by":"publisher","DOI":"10.1109\/CSF.2017.13"},{"key":"e_1_3_4_65_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-17184-1_17"},{"key":"e_1_3_4_66_2","doi-asserted-by":"publisher","DOI":"10.1145\/3341689"},{"key":"e_1_3_4_67_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-54833-8_8"},{"key":"e_1_3_4_68_2","doi-asserted-by":"publisher","DOI":"10.1145\/2676724.2693167"},{"key":"e_1_3_4_69_2","article-title":"A Guide to Undefined Behavior in C and C++, Part 3","author":"Regehr John","year":"2010","unstructured":"John Regehr. 2010. A Guide to Undefined Behavior in C and C++, Part 3. Embedded in Academia blog. (July 2010). Retrieved from https:\/\/blog.regehr.org\/archives\/232.","journal-title":"Embedded in Academia blog"},{"key":"e_1_3_4_70_2","doi-asserted-by":"publisher","DOI":"10.1109\/CSFW.2005.15"},{"key":"e_1_3_4_71_2","doi-asserted-by":"publisher","DOI":"10.1145\/267959.269968"},{"key":"e_1_3_4_72_2","first-page":"146","volume-title":"Proceedings of the 21st International Conference on Foundations of Software Science and Computation Structures, Held as Part of the European Joint Conferences on Theory and Practice of Software (Lecture Notes in Computer Science)","volume":"10803","author":"Scherer Gabriel","year":"2018","unstructured":"Gabriel Scherer, Max S. New, Nick Rioux, and Amal Ahmed. 2018. FabULous interoperability for ML and a linear language. In Proceedings of the 21st International Conference on Foundations of Software Science and Computation Structures, Held as Part of the European Joint Conferences on Theory and Practice of Software (Lecture Notes in Computer Science), Christel Baier and Ugo Dal Lago (Eds.), Vol. 10803. Springer, 146\u2013162. DOI:http:\/\/doi.org\/10.1007\/978-3-319-89366-2_8"},{"key":"e_1_3_4_73_2","doi-asserted-by":"publisher","DOI":"10.1145\/353323.353382"},{"key":"e_1_3_4_74_2","doi-asserted-by":"publisher","DOI":"10.1145\/2487241.2487248"},{"key":"e_1_3_4_75_2","first-page":"27:1\u201327:19","volume-title":"Proceedings of the 10th International Conference on Interactive Theorem Proving (LIPIcs)","volume":"141","author":"Sison Robert","year":"2019","unstructured":"Robert Sison and Toby Murray. 2019. Verifying that a compiler preserves concurrent value-dependent information-flow security. In Proceedings of the 10th International Conference on Interactive Theorem Proving (LIPIcs), John Harrison, John O\u2019Leary, and Andrew Tolmach (Eds.), Vol. 141. Schloss Dagstuhl - Leibniz-Zentrum f\u00fcr Informatik, 27:1\u201327:19. DOI:http:\/\/doi.org\/10.4230\/LIPIcs.ITP.2019.27"},{"key":"e_1_3_4_76_2","doi-asserted-by":"publisher","DOI":"10.1145\/3290332"},{"key":"e_1_3_4_77_2","doi-asserted-by":"publisher","DOI":"10.1145\/2775051.2676985"},{"key":"e_1_3_4_78_2","article-title":"The verified CakeML compiler backend","volume":"29","author":"Tan Yong Kiam","year":"2019","unstructured":"Yong Kiam Tan, Magnus O. Myreen, Ramana Kumar, Anthony Fox, Scott Owens, and Michael Norrish. 2019. The verified CakeML compiler backend. J. Funct. Program. 29 (2019). DOI:http:\/\/doi.org\/10.1017\/S0956796818000229","journal-title":"J. Funct. Program."},{"key":"e_1_3_4_79_2","doi-asserted-by":"publisher","DOI":"10.1145\/2349896.2349905"},{"key":"e_1_3_4_80_2","doi-asserted-by":"publisher","DOI":"10.1145\/2517349.2522728"},{"key":"e_1_3_4_81_2","doi-asserted-by":"publisher","DOI":"10.1145\/3290375"},{"key":"e_1_3_4_82_2","doi-asserted-by":"publisher","DOI":"10.1145\/3371119"},{"key":"e_1_3_4_83_2","doi-asserted-by":"publisher","DOI":"10.5555\/882493.884373"},{"key":"e_1_3_4_84_2","doi-asserted-by":"publisher","DOI":"10.1145\/2103656.2103709"}],"container-title":["ACM Transactions on Programming Languages and Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3460860","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3460860","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3460860","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T21:24:28Z","timestamp":1750195468000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3460860"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,11,10]]},"references-count":83,"journal-issue":{"issue":"4","published-print":{"date-parts":[[2021,12,31]]}},"alternative-id":["10.1145\/3460860"],"URL":"https:\/\/doi.org\/10.1145\/3460860","relation":{},"ISSN":["0164-0925","1558-4593"],"issn-type":[{"value":"0164-0925","type":"print"},{"value":"1558-4593","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021,11,10]]},"assertion":[{"value":"2020-05-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2021-04-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2021-11-10","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}