ckompiler:用 Kotlin 编译的 C11 编译器

ckompiler 是用 Kotlin 编写的 C11 编译器,可以生成汇编代码。汇编器和链接器由外部提供,如 nasm 和 ld。通过运行 ./gradlew distZip 构建 CLI 编译器,位于 build/distributions/ckompiler-$version.zip。JUnit 测试位于 slak.test 包的 src/test/kotlin。详情请参阅 --help。CLI 模拟 gcc/clang,支持 -o-c-D-I-l 等选项和调试选项(如 --cfg-mode--print-asm-comm)。参数解析使用自定义库。

folder
ckompiler:用Kotlin编写的AC编译器 预估大小:209个文件
file
gradlew.bat 3KB
file
cfgTest.c 338B
file
constrainedSpill.c 454B
file
oneIntPressure.c 283B
file
ternaryOps.c 258B
file
manyIntParameters.c 721B
file
spillExistingForCall.c 293B
file
callInNestedBlocks.c 918B
file
callerSavedFunctionCall.c 263B
file
callInLargeLoopCFG.c 557B
file
manyParamsAndCalls.c 409B
file
spillWithConstrained.c 325B
file
highNesting.c 421B
file
interference.c 328B
file
parallelLiveRanges.c 285B
file
liveSetTest3.c 356B
file
phiTest.c 371B
file
domsTest4.c 426B
file
domsTest2.c 330B
file
liveSetTest2.c 279B
zip 文件大小:793.05KB