d6941e1d2f2c97f289364884ce627dab1dd51c23
新增 `_path_collection` 方法用于统一处理路径的解析、去重及相对化, 优化对象文件路径生成逻辑,支持更安全的路径映射机制,防止文件冲突。 同时添加对构建目录的清理功能(clean 命令),完善构建生命周期管理。 主要变更包括: - 引入 `hashlib` 模块以支持路径哈希命名 - 重构 `get_build_components` 和 `get_object_path` 方法 - 新增 `clean` 命令及相关实现 - 改进命令行参数支持,增加 "clean" 选项
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%