You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mlibc is a lightweight C library specifically designed for deeply embedded systems. The project focuses on implementing POSIX.1-2001 (PSE51) and related ANSI C APIs to provide essential system functionality for resource-constrained embedded environments. This library aims to offer a minimal yet complete implementation of standard C library functions while maintaining compatibility with various embedded architectures including RISC-V, ARM, and AArch64.
7
+
8
+
Key features:
9
+
- PSE51 (POSIX.1-2001) compliance
10
+
- ANSI C standard library implementation
11
+
- Multi-architecture support (RISC-V32/64, ARM, AArch64)
12
+
- Minimal memory footprint
13
+
- Embedded-first design philosophy
14
+
15
+
**中文:**
16
+
mlibc 是一个专门为深度嵌入式系统设计的轻量级 C 库。该项目专注于实现 POSIX.1-2001 (PSE51) 和相关的 ANSI C API,为资源受限的嵌入式环境提供基础系统功能。本库旨在提供标准 C 库函数的最小化但完整的实现,同时保持与多种嵌入式架构(包括 RISC-V、ARM 和 AArch64)的兼容性。
17
+
18
+
主要特性:
19
+
- 符合 PSE51 (POSIX.1-2001) 标准
20
+
- ANSI C 标准库实现
21
+
- 多架构支持 (RISC-V32/64, ARM, AArch64)
22
+
- 最小内存占用
23
+
- 嵌入式优先的设计理念
24
+
25
+
## Code Review Instructions / 代码审查指南
26
+
27
+
### Review Language / 审查语言
28
+
When performing code reviews, respond in Chinese and English.
29
+
进行代码审查时,请使用中英文双语回复。
30
+
31
+
### Review Focus Areas / 审查重点
32
+
33
+
**English:**
34
+
1.**Memory Safety**: Pay special attention to buffer overflows, memory leaks, and pointer safety
35
+
2.**Embedded Constraints**: Consider memory usage, stack usage, and performance implications
36
+
3.**Standard Compliance**: Ensure compliance with PSE51 and ANSI C standards
37
+
4.**Architecture Portability**: Verify code works across supported architectures
38
+
5.**Error Handling**: Check for proper error handling and edge cases
39
+
6.**Documentation**: Ensure code is well-documented for embedded developers
40
+
41
+
**中文:**
42
+
1.**内存安全**: 特别关注缓冲区溢出、内存泄漏和指针安全性
43
+
2.**嵌入式约束**: 考虑内存使用、栈使用和性能影响
44
+
3.**标准合规性**: 确保符合 PSE51 和 ANSI C 标准
45
+
4.**架构可移植性**: 验证代码在支持的架构间正常工作
46
+
5.**错误处理**: 检查适当的错误处理和边界情况
47
+
6.**文档说明**: 确保代码有良好的文档供嵌入式开发者使用
48
+
49
+
### Review Format / 审查格式
50
+
51
+
Please structure your reviews as follows:
52
+
请按以下格式组织您的审查:
53
+
54
+
```
55
+
## Code Review / 代码审查
56
+
57
+
### Summary / 总结
58
+
**English:** [Brief summary of changes and overall assessment]
59
+
**中文:** [变更简要总结和整体评估]
60
+
61
+
### Issues Found / 发现的问题
62
+
**English:**
63
+
- [Issue 1 description]
64
+
- [Issue 2 description]
65
+
66
+
**中文:**
67
+
- [问题1描述]
68
+
- [问题2描述]
69
+
70
+
### Recommendations / 建议
71
+
**English:**
72
+
- [Recommendation 1]
73
+
- [Recommendation 2]
74
+
75
+
**中文:**
76
+
- [建议1]
77
+
- [建议2]
78
+
79
+
### Positive Aspects / 积极方面
80
+
**English:**
81
+
- [Good practice 1]
82
+
- [Good practice 2]
83
+
84
+
**中文:**
85
+
- [良好实践1]
86
+
- [良好实践2]
87
+
```
88
+
89
+
### Specific Considerations for mlibc / mlibc 特定考虑事项
90
+
91
+
**English:**
92
+
-**PSE51 Compatibility**: Verify function signatures and behavior match PSE51 specifications
0 commit comments