tac:tac x86编译器

时间:2021-02-02 13:11:12
【文件属性】:
文件名称:tac:tac x86编译器
文件大小:53KB
文件格式:ZIP
更新时间:2021-02-02 13:11:12
compiler x86 lexer CompilerC TAC 受Typescript , Assembly和C启发的编程语言。 介绍 Tac目前仅由我Sebastian开发。 之所以创建Tac是因为我想教自己如何编写编译器。 现在,Tac不应以任何方式受到重视,因为它只是我的另一个玩具项目。 顺便说一句 顺便说一句,您可以在这里观看我在YouTube上使用此编译器的工作: “ Hello World”示例 这是Tac中的“ Hello World”: main = (argc: int, argv: Array):int => { print("Hello World\n"); return 0; }; 安装和运行Tac编译器 依存关系 编译器构建依赖项 要构建编译器,您将需要: gcc-GNU编译器集合(C编译器) 编译器运行时依赖项 编译器当前具有以下依赖性: as(1)-便携式GNU汇编器。 ld(1)-GNU链接器 xxdi 建造 要构建Tac编译器,只需运行: make 这将生成./tac.out二进制文件,该二进制文件用于编译Tac代码。 编译Tac代码 要编译Tac代码,只需使用从构建
【文件预览】:
tac-master
----a.s.txt(3KB)
----tests()
--------a.s.txt(2KB)
--------a.s(2KB)
--------src()
--------main(5KB)
--------Makefile(367B)
----a.s(3KB)
----src()
--------compiler_errors.c(463B)
--------token.c(1KB)
--------builtins.c(487B)
--------tac.c(798B)
--------main.c(208B)
--------types.c(174B)
--------include()
--------AST.c(342B)
--------lexer.c(4KB)
--------stack_frame.c(222B)
--------list.c(714B)
--------utils.c(2KB)
--------asm()
--------as_frontend.c(11KB)
--------io.c(1KB)
--------parser.c(6KB)
--------visitor.c(6KB)
----examples()
--------arith_div.tac(126B)
--------main.tac(81B)
--------call.tac(200B)
--------arith_mul.tac(141B)
--------print_numbers.tac(112B)
--------assign_int.tac(126B)
--------arith_sub.tac(213B)
--------arith_add.tac(134B)
--------arith_sub_add.tac(155B)
--------shared.tac(74B)
--------variables.tac(422B)
----LICENSE.md(34KB)
----.gitignore(923B)
----Makefile(769B)
----README.md(2KB)

网友评论