[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-655830-105":59,"doc-detail-655830-en":130,"doc-similar-655830":163},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","pearl-diagrams-for-composing-compilers-read-and-study","Pearl: Diagrams for Composing Compilers - read and study","","T-diagrams (tombstone diagrams) are revisited as a teaching tool for composing compilers and interpreters to build and execute software. Redesigned diagrams improve readability and are applied to explain key compiler concepts, including bootstrapping and cross-compilation. The paper develops a formal semantics for the redesigned diagrams using binary trees, and outlines how the diagrams can be used to analyze the performance of a compilation system.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/pearl-diagrams-for-composing-compilers-read-and-study/655830/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/pearl-diagrams-for-composing-compilers-read-and-study/655830.png","ImageObject",300,407,{"name":92,"@type":93},"Cart","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-25","2026-10-25",true,{"@type":102,"interactionType":103,"userInteractionCount":29},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What are T-diagrams (tombstone diagrams) used for in compiler teaching?","Question",{"text":112,"@type":113},"They explain how compilers and interpreters can be composed to build and execute software, by representing compilation relationships between source, target, and implementation languages.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What improvements does the paper propose for T-diagrams?",{"text":117,"@type":113},"It redesigns T-diagrams to improve readability and demonstrates their use for concepts such as bootstrapping and cross-compilation.",{"name":119,"@type":110,"acceptedAnswer":120},"How does the paper give formal meaning to the redesigned diagrams?",{"text":121,"@type":113},"It provides a formal semantics based on binary trees for the redesigned diagrams.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},655830,1793051630,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":29,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":19,"preview_urls":146},18829141979164,"https://eur-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","Pearl: Diagrams for Composing Compilers John Wickerson  \nImperial College London, UK [j.wickerson@imperial.ac.uk](j.wickerson@imperial.ac.uk)  \nPaul Brunet  \nUniversity College London, UK [p.brunet@ucl.ac.uk](p.brunet@ucl.ac.uk)  \n~~ Abstract ~~  \nT-diagrams (or ‘tombstone diagrams’) are widely used in teaching for explaining how compilers and interpreters can be composed together to build and execute software. In this Pearl, we revisit these diagrams, and show how they can be redesigned for better readability. We demonstrate how they can be applied to explain compiler concepts including bootstrapping and cross-compilation. We provide a formal semantics for our redesigned diagrams, based on binary trees. Finally, we suggest how our diagrams could be used to analyse the performance of a compilation system.  \n2012 ACM Subject Classiﬁcation Software and its engineering → Compilers Keywords and phrases compiler networks, graphical languages, pedagogy Digital Object Identiﬁer 10.4230/LIPIcs.ECOOP.2020.1  \n 1  Introduction  \nIn introductory courses on compilers across the globe, students are taught about the interactions between compilers using ‘tombstone diagrams’ or ‘T-diagrams’. In this formalism, a compiler is represented as a ‘T-piece’. A T-piece, as shown in Fig. 1, is characterised by three labels: the source language of the compiler, the target language of the compiler, and the language in which the compiler is implemented.  \nComplex networks of compilers can be represented by composing these basic pieces in two ways. Horizontal composition means that the output of the ﬁrst compiler is fed in as the input to the second. Diagonal composition means that the ﬁrst compiler is itself compiled using the second compiler. Figures 2 and 3 give examples of both forms.  \n\n| src tgt |  |  |\n| --- | --- | --- |\n|  | imp |  |\n\n Figure 1 A compiler from source language ‘src’ to target language ‘tgt’ implemented in language‘imp’.  \n\n| Haskell C |  |  | C | Java | ARM |\n| --- | --- | --- | --- | --- | --- |\n|  | Java |  |  |  |  |\n\n Figure 2 Horizontal composition of T-pieces. Haskell is compiled to C using a compiler written in Java, and thence to ARM assembly using another compiler that is also written in Java.  \n\n| OCaml x86 |  |  |\n| --- | --- | --- |\n|  | C |  |\n\n\n| C | x86 |  |\n| --- | --- | --- |\n|  | x86 |  |\n\n Figure 3 Diagonal composition of T-pieces. An OCaml-tox86 compiler written in C is being compiled using a C-to-x86 compiler written in x86 assembly.  \nIn this paper, we investigate the foundations of these diagrams. What are the rules that govern how they can be composed (§2)? Can we redesign them to make them more understandable (§3)? What do they mean in general (§4)? And what do they tell us about the compilers they depict (§5)?  \n© Author: Please provide a copyright holder;  \nlicensed under Creative Commons License CC-BY 34th European Conference on Object-Oriented Programming.  \nEditor: Robert Hirschfeld; Article No. 1; pp. 1:1–1:14  \nLeibniz International Proceedings in Informatics  \n Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl Publishing, Germany  \n1:2 Diagrams for Composing Compilers  \nFigure 4 A precursor to the T-diagram [8] . An UNCOL-to-704 compiler (top left) running on an IBM 704 machine (middle) is used to compile an OTN-to-UNCOL compiler implemented in UNCOL (bottom left), which results in an OTNto-UNCOL compiler implemented in 704 machine code (right) .  \nFigure 5 The ﬁrst T-diagram [1] . This Tdiagram depicts the same information as Fig. 4.  \n\n| OCaml x86 |  |  |\n| --- | --- | --- |\n|  | C\u003Cbr>|  |\n\nC  \nthese languages  must match    \nbut these need not  \nx86  \nx86  \n Figure 6 Only one of the two joining interfaces requires its languages to match (Problem 1)  \nFigure 7 This form of composition  \nlooks legal but is not (Problem 3)  \n 2  Background  \nThe usefulness of diagrams for explaining the connectivity between compilers can be traced back at least as far as the UNCOL project in the 1950s [8]","cbCaieVEb0c3ZQve","https://ap.wps.com/l/cbCaieVEb0c3ZQve","pdf",1499531,13,"English","# Introduction\n## Background\n# Diagrams for Composing Compilers\n## Problems with T-diagrams","[{\"question\":\"What are T-diagrams (tombstone diagrams) used for in compiler teaching?\",\"answer\":\"They explain how compilers and interpreters can be composed to build and execute software, by representing compilation relationships between source, target, and implementation languages.\"},{\"question\":\"What improvements does the paper propose for T-diagrams?\",\"answer\":\"It redesigns T-diagrams to improve readability and demonstrates their use for concepts such as bootstrapping and cross-compilation.\"},{\"question\":\"How does the paper give formal meaning to the redesigned diagrams?\",\"answer\":\"It provides a formal semantics based on binary trees for the redesigned diagrams.\"}]","Pearl: Diagrams for Composing Compilers - read and study | PDF",1792964160,33,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/19b6e965c3333af8587729f47edeadfb.webp",983,1390,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/ddf2929d4c1d37dbf8aa6347d0d2d038.webp",982,1388,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/374b2dd32afcf95d419c4b82f7c9c9fc.webp",981,1387,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/4fe8ad1af53738d2c97f64ed4c5e9a87.webp",980,1385,{"list":164,"token":66},[165,171,178,184,190,196,203,210,217,224],{"doc_id":166,"doc_title":167,"file_type":137,"home_preview_img_url":168,"slug":169,"view_count":24,"category_name":40,"create_tm":170},703184,"xDSL - Sidekick Compilation for SSA-Based Compilers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230013432545/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109839&Signature=%2BPcy9CmAeDolOPXuoe4ZHEbv08c%3D","xdsl-sidekick-compilation-for-ssa-based-compilers",1794562117,{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":176,"category_name":40,"create_tm":177},84202,"Finding and Understanding Miscompilation Bugs in the Solidity Compiler","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809033049/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109839&Signature=WTzK%2Fw3YauJNJedBNF%2FheaZICV8%3D","finding-and-understanding-miscompilation-bugs-in-the-solidity-compiler",25,1784193910,{"doc_id":179,"doc_title":180,"file_type":137,"home_preview_img_url":181,"slug":182,"view_count":29,"category_name":40,"create_tm":183},701214,"Finding Time - How Programmers Manipulate Code to Decrease Runtime","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012054147/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109839&Signature=%2BZIEzgn5QLKWRUSZlsPuUd5BFc4%3D","finding-time-how-programmers-manipulate-code-to-decrease-runtime",1794524189,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":44,"category_name":40,"create_tm":189},509857,"SK2Decompile - LLM-based two-phase binary decompilation from skeleton to skin","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229934854372/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109839&Signature=nEVBGDrluhDbAqAYShnCRR59o7A%3D","sk2decompile-llm-based-two-phase-binary-decompilation-from-skeleton-to-skin",1791237573,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":24,"category_name":40,"create_tm":195},655635,"Exploring How Developers Layout UML Class Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975286411/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109839&Signature=6hS%2FwBZUJarNK0qK%2BRChNUeMs%2B0%3D","exploring-how-developers-layout-uml-class-diagrams",1792962959,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":201,"category_name":40,"create_tm":202},234,"XNX Gas Detector Calibration Guide 2023","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727733/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109839&Signature=QsrxodGgCI5ejor2gic6sk2AUEw%3D","xnx-gas-detector-calibration-2023",7896,1776136863,{"doc_id":204,"doc_title":205,"file_type":137,"home_preview_img_url":206,"slug":207,"view_count":208,"category_name":40,"create_tm":209},227,"Sridevi Matka Chart Full Guide to Panel, Jodi & Pana Records","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727553/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109839&Signature=jNusTGBjMCqiEzuGGBid9xl%2B3YY%3D","sridevi-matka-chart-full-guide-to-panel-jodi-pana-records",6933,1776136851,{"doc_id":211,"doc_title":212,"file_type":137,"home_preview_img_url":213,"slug":214,"view_count":215,"category_name":40,"create_tm":216},167314,"Linear Algebra and Its Applications 6th edition Textbook by david c. lay","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229876163444/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109839&Signature=8m08YqXmJ8rile50k2v8IoLMBB4%3D","linear-algebra-and-its-applications-sixth-edition-david-c-lay-steven-r-lay-judi-j-mcdonald",5866,1788211707,{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":222,"category_name":40,"create_tm":223},32070,"Blueprint Pengelolaan Sumber Daya Manusia Kesehatan (SDMK) Tahun 2025–2029","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229758685683/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109839&Signature=kwDUNXpLHhI27n0je8jPL%2Fz%2FC%2Bg%3D","healthcare-human-resources-management-blueprint-sdmk-20252029",1292,1780779716,{"doc_id":225,"doc_title":226,"file_type":137,"home_preview_img_url":227,"slug":228,"view_count":229,"category_name":40,"create_tm":230},148514,"Developmental Biology - Twelfth Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229868853261/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109839&Signature=7tGFQe%2BVr3xqrjvGsJA16IUaJAM%3D","developmental-biology-twelfth-edition",1250,1787780705]