[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6449":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":19,"lastSyncTime":29,"discoverSource":30},6449,"8cc","rui314\u002F8cc","rui314","A Small C Compiler","",null,"C",6392,768,239,27,0,3,14,2,39.66,"MIT License",false,"master",true,[],"2026-06-12 02:01:25","8cc C Compiler\n==============\n\nNote: 8cc is no longer an active project. The successor is\n[chibicc](https:\u002F\u002Fgithub.com\u002Frui314\u002Fchibicc).\n\n8cc is a compiler for the C programming language.\nIt's intended to support all C11 language features\nwhile keeping the code as small and simple as possible.\n\nThe compiler is able to compile itself.\nYou can see its code both as an implementation of the C language\nand as an example of what this compiler is able to compile.\n\n8cc's source code is carefully written to be as concise and easy-to-read\nas possible, so that the source code becomes good study material\nto learn about various techniques used in compilers.\nYou may find the lexer, the preprocessor and the parser are\nalready useful to learn how C source code is processed at each stage.\n\nIt's not an optimizing compiler.\nGenerated code is usually 2x or more slower than GCC.\nI plan to implement a reasonable level of optimization in the future.\n\n8cc supports x86-64 Linux only. I have no plan to make it portable until\nI fix all known miscompilations and implement an optimization pass.\nAs of 2015, I'm using Ubuntu 14 as my development platform.\nIt should work on other x86-64 Linux distributions though.\n\nNote: Do not have high expectations on this compiler.\nIf you try to compile a program other than the compiler itself,\nthere's a good chance to see compile errors or miscompilations.\nThis is basically a one-man project, and I have spent only a few\nmonths of my spare time so far.\n\nBuild\n-----\n\nRun make to build:\n\n    make\n\n8cc comes with unit tests. To run the tests, give \"test\" as an argument:\n\n    make test\n\nThe following target builds 8cc three times to verify that\nstage1 compiler can build stage2, and stage2 can build stage3.\nIt then compares stage2 and stage3 binaries byte-by-byte to verify\nthat we reach a fixed point.\n\n    make fulltest\n\nAuthor\n------\n\nRui Ueyama \u003Crui314@gmail.com>\n\n\nLinks for C compiler development\n--------------------------------\n\nBesides popular books about compiler, such as the Dragon Book,\nI found the following books\u002Fdocuments are very useful\nto develop a C compiler.\nNote that the standard draft versions are very close to the ratified versions.\nYou can practically use them as the standard documents.\n\n-   LCC: A Retargetable C Compiler: Design and Implementation\n    http:\u002F\u002Fwww.amazon.com\u002Fdp\u002F0805316701,\n    https:\u002F\u002Fgithub.com\u002Fdrh\u002Flcc\n\n-   TCC: Tiny C Compiler\n    http:\u002F\u002Fbellard.org\u002Ftcc\u002F,\n    http:\u002F\u002Frepo.or.cz\u002Fw\u002Ftinycc.git\u002Ftree\n\n-   C99 standard final draft\n    http:\u002F\u002Fwww.open-std.org\u002Fjtc1\u002Fsc22\u002Fwg14\u002Fwww\u002Fdocs\u002Fn1124.pdf\n\n-   C11 standard final draft\n    http:\u002F\u002Fwww.open-std.org\u002Fjtc1\u002Fsc22\u002Fwg14\u002Fwww\u002Fdocs\u002Fn1570.pdf\n\n-   Dave Prosser's C Preprocessing Algorithm\n    http:\u002F\u002Fwww.spinellis.gr\u002Fblog\u002F20060626\u002F\n\n-   The x86-64 ABI\n    http:\u002F\u002Fwww.x86-64.org\u002Fdocumentation\u002Fabi.pdf\n","8cc是一个小型的C语言编译器，旨在支持所有C11语言特性的同时保持代码尽可能简洁。其核心功能包括自我编译能力、易读且精简的源代码设计，以及作为学习编译器技术的良好材料。该项目特别适用于教育场景，如教授编译原理或C语言处理流程（包括词法分析、预处理和语法解析等阶段）。值得注意的是，8cc不进行代码优化，生成的代码运行速度通常比GCC慢两倍以上，且目前仅支持x86-64架构下的Linux系统。由于项目已不再活跃，开发者建议转向其后续项目chibicc。","2026-06-11 03:07:03","top_language"]