首页 > 其他分享 >A Compiler Writing Journey

A Compiler Writing Journey

时间:2023-08-01 15:45:29浏览次数:32  
标签:Function code Writing Part Journey part Compiler

 

DoctorWkt/acwj: A Compiler Writing Journey (github.com)

 

A Compiler Writing Journey

In this Github repository, I'm documenting my journey to write a self-compiling compiler for a subset of the C language. I'm also writing out the details so that, if you want to follow along, there will be an explanation of what I did, why, and with some references back to the theory of compilers.

But not too much theory, I want this to be a practical journey.

Here are the steps I've taken so far:

There isn't a schedule or timeline for the future parts, so just keep checking back here to see if I've written any more.

Copyrights

I have borrowed some of the code, and lots of ideas, from the SubC compiler written by Nils M Holm. His code is in the public domain. I think that my code is substantially different enough that I can apply a different license to my code.

Unless otherwise noted,

  • all source code and scripts are (c) Warren Toomey under the GPL3 license.
  • all non-source code documents (e.g. English documents, image files) are (c) Warren Toomey under the Creative Commons BY-NC-SA 4.0 license.

 

 

 

标签:Function,code,Writing,Part,Journey,part,Compiler
From: https://www.cnblogs.com/sinferwu/p/17596691.html

相关文章

  • 解决:vscode插件C/C++ CompileRun 输出中文乱码问题
    打开插件设置在该设置中加入语句-fexec-charset=GBK即可......
  • CMake Error at CMakeLists.txt: No CMAKE_CXX_COMPILER could be found.
    系统环境:Ubuntu22.04.11.问题发生--TheCcompileridentificationisGNU11.3.0--TheCXXcompileridentificationisunknown--DetectingCcompilerABIinfo--DetectingCcompilerABIinfo-done--CheckforworkingCcompiler:/usr/bin/cc-skipped--......
  • 编译安装最新的Pluto compiler,以及遇到的一些坑
    好久不见!这段时间在鼓捣一些奇奇怪怪的东西。PlutoCompiler是一款非常优秀的Polyhedral编译器。这玩意拿来优化循环和程序局部性啥的是相当好的。其安装过程涉及到整个llvm的编译过程,如果之前并没能够了解llvm的话估计会够呛,我也是基本上把坑踩了一个遍。所以干脆写篇博客给之......
  • AI制图工具丨Midjourney产品功能介绍
    ​了解如何使用Discord上的MidjourneyBot通过简单的文本提示创建自定义图像Midjourney是一款AI制图工具,只要关键字,就能透过AI算法生成相对应的图片,只需要不到一分钟。可以选择不同画家的艺术风格,例如安迪华荷、达芬奇、达利和毕加索等,还能识别特定镜头或摄影术语。有别于谷歌......
  • idea报错 java: You aren't using a compiler supported by lombok, so lombok will
    转‘’:idea较新版本识别不了lombok生成的方法 在这增加参数:-Djps.track.ap.dependencies=false  ......
  • P3422 [POI2005] LOT-A Journey to Mars
    前言传送门blog长沙市一中暑假第一次思维训练。前置芝士前缀和单调队列思路在考试过程中突然发现与好消息,坏消息题目大致相同,不同之处只有这个可以往逆时针方向走,以此确定本题算法——前缀和与单调队列。首先我们可以算出每一个站点可以拿到的油$p_i-d_i$,也就是油量$......
  • *** These critical programs are missing or too old: compiler
     001、问题 ***Thesecriticalprogramsaremissingortooold:compiler 002、查看c编译器版本[root@PC1build]#gcc--versiongcc(GCC)4.8.520150623(RedHat4.8.5-44)Copyright(C)2015FreeSoftwareFoundation,Inc.Thisisfreesoftware;seethe......
  • writing vocabulary
    thenecessityof...isdiscussedbythepublicinrecentyeras. ...isvaluableleadstothedeclineof haveextratimearewidelyadotpedshouldbeextinguished(abandoned)owingto beenhancedaccordingtosomestudyinpsychologicalscience.inlon......
  • *** These critical programs are missing or too old: make compiler
     001、问题***Thesecriticalprogramsaremissingortooold:makecompiler 002、查看当前的make版本[root@PC1build]#make--version 003、make官网:http://ftp.gnu.org/pub/gnu/make/下载最新的make。 004、wgethttp://ftp.gnu.org/pub/gnu/make/ma......
  • The Deep Learning Compiler: A Comprehensive Survey
    TheDeepLearningCompiler:AComprehensiveSurveyAI编译器综述摘要介绍背景深度学习框架深度学习硬件DL编译器设计体系DL编译器的关键组成High-levelIRgraphIR表示GraphIR的实现,包括数据和算子的管理小结Low-levelIRLow-levelIR的实现Low-level......