Abstract
Interoperability across software languages is an important practical topic. In this paper, we take a deep dive into investigating and tackling the challenges involved with achieving interoperability between C and BabyCobol. The latter is a domain-specific language condensing challenges found in compiling legacy languages — borrowing directly from COBOL's data philosophy. Crossover, a compiler designed specifically to showcase the interoperability, exposes details of connecting a COBOL-like language with PICTURE clauses and re-entrant procedures, to C with primitive types and struct composites. Crossover features a C library for overcoming the differences between the data representations native to the respective languages. We illustrate the design process of Crossover and demonstrate its usage to provide a strategy to achieve interoperability between legacy and modern languages. The described process is aimed to be a blueprint for achievable interoperability between full-fledged COBOL and modern C-like programming languages.
Original language | English |
---|---|
Title of host publication | GPCE 2023 |
Subtitle of host publication | Proceedings of the 22nd ACM SIGPLAN International Conference on Generative Programming: Concepts and Experiences |
Editors | Coen De Roover, Bernhard Rumpe, Amir Shaikhha |
Publisher | ACM Press |
Pages | 72-85 |
Number of pages | 14 |
Volume | 2023 |
ISBN (Electronic) | 979-8-4007-0406-2 |
DOIs | |
Publication status | Published - 22 Oct 2023 |
Event | 22nd ACM SIGPLAN International Conference on Generative Programming, GPCE 2023: Concepts and Experiences - Cascais, Portugal Duration: 22 Oct 2023 → 23 Oct 2023 Conference number: 22 |
Conference
Conference | 22nd ACM SIGPLAN International Conference on Generative Programming, GPCE 2023 |
---|---|
Abbreviated title | GPCE 2023 |
Country/Territory | Portugal |
City | Cascais |
Period | 22/10/23 → 23/10/23 |
Keywords
- 2023 OA procedure
- compilation
- legacy languages
- integration