1. 一键安装包 (build-release.ps1) - 打包 pcc.exe + 标准头文件 + Windows 头文件 + 运行时库 - 生成 pcc.bat 启动器,自动设置 include/lib 路径 - 输出: release/pcc-0.9.28-win32.zip (594 KB) 2. GUI 程序支持验证 - -Wl,-subsystem=windows 正确生成 GUI 程序 (PE Subsystem=2) - MessageBox 弹窗测试通过 3. VS Code 插件 (vscode-extension/) - C 语法高亮 (TextMate grammar) - PCC: Build (Ctrl+Shift+B) / PCC: Build & Run (Ctrl+F5) - 可配置 include/lib 路径和 pcc 可执行文件位置 4. Windows API 头文件验证 - 系统信息/时间/注册表/控制台/文件 API 编译运行正常 - PE 导入表格式正确 (kernel32.dll, msvcrt.dll) 5. 测试套件验证 - tests2 基础测试 48/53 通过 - 其余为测试框架差异 (stderr 合并/参数传递),非编译器 bug
48 行
1.3 KiB
Markdown
48 行
1.3 KiB
Markdown
# PCC C Language Support
|
|
|
|
C language support with **Paze C Compiler (PCC)** integration for Visual Studio Code.
|
|
|
|
## Features
|
|
|
|
- ✅ **Syntax highlighting** for C files (.c, .h)
|
|
- ✅ **Build** current C file with PCC (Ctrl+Shift+B)
|
|
- ✅ **Build & Run** current C file (Ctrl+F5)
|
|
- ✅ Configurable pcc path, include/lib paths
|
|
|
|
## Installation
|
|
|
|
### From VSIX
|
|
1. Run `npx @vscode/vsce package` in this directory to create the VSIX
|
|
2. In VS Code: Extensions → `...` → Install from VSIX → select the .vsix file
|
|
|
|
### From source (development)
|
|
1. Copy this directory to `~/.vscode/extensions/pcc-language-support`
|
|
2. Reload VS Code
|
|
|
|
## Usage
|
|
|
|
Open a `.c` file, then:
|
|
|
|
| Command | Shortcut | Description |
|
|
|---------|----------|-------------|
|
|
| PCC: Build | `Ctrl+Shift+B` | Compile to `.exe` next to source |
|
|
| PCC: Build & Run | `Ctrl+F5` | Compile and run in terminal |
|
|
|
|
## Settings
|
|
|
|
| Setting | Description |
|
|
|---------|-------------|
|
|
| `pcc.executable` | Path to pcc.exe (empty = search PATH) |
|
|
| `pcc.includePath` | Extra `-I` include directories |
|
|
| `pcc.libPath` | Extra `-L` library directories |
|
|
| `pcc.args` | Extra arguments passed to pcc |
|
|
| `pcc.outputDir` | Output directory for exe (empty = source dir) |
|
|
|
|
## Requirements
|
|
|
|
- **PCC** - install from https://git.parlz.com/Paze/Paze-C-CPP-Compiler or add to PATH
|
|
|
|
## License
|
|
|
|
MIT
|