zzy f29fd92fdf feat(core): 添加字符串长度计算函数并优化数据结构定义
- 在 `core_mem.h` 中新增 `smcc_strlen` 函数,用于计算字符串长度
- 调整 `VEC` 宏定义参数,移除冗余的 name 参数,增强结构体声明一致性
- 修改 `cstring_from_cstr` 返回值字段顺序,保持代码风格统一
- 在 `libcore.h` 中增加日志相关宏定义的保护判断,防止重复定义冲突
2025-11-20 22:26:49 +08:00
2025-04-05 23:11:39 +08:00

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
No description provided
Readme 506 KiB
Languages
C 69.5%
C++ 26.3%
Python 3.3%
Makefile 0.9%