macOS
brew install clocal Homebrew formula metadata
安装
brew install clocal Homebrew formula metadata
概览
Compile and execute C "scripts" in one go
历史
c is a small shell-script front end for compiling and running C or C++ files in one command. Its niche is treating small C programs like scripts while still letting the user choose GCC, Clang, TCC, or another compiler through the normal CC environment variable.
The upstream Git history begins on 23 February 2015 with the initial c script and shebang support. The README frames the project as a convenience wrapper rather than a compiler: it compiles and executes C scripts in one go, and later added a cache so repeated runs can avoid unnecessary rebuilds.
The README documents installation through source download, AUR, bpkg, and Homebrew. Homebrew packaging gives it a low-friction macOS path for the exact use case the README highlights: putting a c executable on PATH and using it in shebangs or direct commands.
Typical usage is `c hello.c` or a shebang such as `#!/usr/bin/c`. For multi-file programs, compiler flags and additional source files are passed in the first quoted argument, and runtime arguments follow after that.
The tool honors CC, supports cache tuning through C_CACHE_SIZE and C_CACHE_PATH, and offers `--clear-cache` for cache cleanup.
The package is a classic tiny-CLI package-manager curiosity: one executable, almost no ceremony, and enough ergonomics to make C feel like a scripting language for quick local utilities.
It is also a useful contrast with `tcc -run`: the README explicitly says c is not tied to one compiler, making it a compiler-agnostic runner rather than a language implementation.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
c | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/ryanmjacobs/c
安装元数据
| 软件包键 | brew:c |
|---|---|
| 版本 | 0.15.1 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/c |
| 主页 | https://github.com/ryanmjacobs/c |
| 仓库 | https://github.com/ryanmjacobs/c |
| 上游文档 | https://github.com/ryanmjacobs/c#readme |
| 许可证 | MIT |
| 源码归档 | https://github.com/ryanmjacobs/c/archive/refs/tags/v0.15.1.tar.gz |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | c |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.