fa5611dabd4724dcc242f0eac0ff665c11ce5750
将 `logger_root` 重命名为 `__default_logger_root` 以避免潜在的符号冲突, 同时简化日志宏定义逻辑,提升代码可读性与维护性。此外,为防止 clang-format 格式化影响日志宏的排版,添加了 clang-format 开关注释。 refactor(memory): 优化 memcmp 函数中的 switch-case 结构 在 `smcc_memcmp` 函数中为每个 case 添加 `/* fall through */` 注释, 明确表示故意穿透到下一个 case,提高代码意图的清晰度,并增强静态分析工具的兼容性。
Simple Models C Compiler
Smaller Compiler(SMCC)
This is a simple C compiler that generates executable code from a simple c99 sub programming language. The language supports basic operations such as arithmetic, logical, conditional statements and if else while for switch case statements and function calls and system calls.
Features
-
隔离标准库
-
轻量化
-
模块化
-
自举构建
Description
Languages
C
69.5%
C++
26.3%
Python
3.3%
Makefile
0.9%