# 使用 Homebrew 安装 zxcc

查看 zxcc 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:zxcc
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install zxcc
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:zxcc
- **软件包管理器:** Homebrew
- **版本:** 0.5.7
- **来源摘要:** CP/M 2/3 emulator for cross-compiling and CP/M tools under UNIX
- **主页:** <https://www.seasip.info/Unix/Zxcc/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- zxas (别名)
- zxcc (别名)
- zxlibr (别名)
- zxlink (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.5.7
## 项目历史与用法

ZXCC is John Elliott's CP/M 2/3 emulator for Unix-style cross-development: it runs CP/M tools such as HI-TECH C and Digital Research build utilities while mapping host directories into CP/M drives.

### 项目历史

The original ZXCC page describes a two-purpose emulator: using HI-TECH C for CP/M as a cross-compiler under Unix, and running CP/M build tools such as MAC, RMAC, GENCOM, and LINK under DOS or Unix. The stable 0.5.7 source bundled CPMIO for terminal emulation and CPMREDIR for host-filesystem redirection.

A later community-maintained GitHub repository was extracted from Elliott's stable source in 2021. That tree focuses on keeping ZXCC useful on modern Windows, Linux, Unix, and macOS systems, with fixes for HI-TECH Z80 C, CP/M BDOS behavior, Z80 instruction emulation, file tracking, and autotools builds.

### 采用历史

ZXCC's adoption is narrow but durable: retrocomputing developers use it when the authentic CP/M compiler or assembler is part of the build, but they want modern host files, scripts, editors, and CI around it. Its wrappers such as zxc, zxas, zxlink, and zxlibr turn CP/M-era tools into commands that fit a Unix workflow.

### 使用方式

The key trick is BDOS-level emulation rather than a full machine emulator. CPMREDIR presents host directories as CP/M drives, so tools running under the emulator can read and write normal files. That makes ZXCC especially practical for rebuilding old CP/M software, running HI-TECH C, and using Digital Research toolchains from a modern shell.

### 为什么软件包爱好者会关心

ZXCC is package-nerd catnip because it packages a bridge between package-manager convenience and historical toolchains. Installing it gives modern systems command-line access to a CP/M development environment without booting a full vintage machine image.

### 时间线

- 2013: John Elliott's ZXCC page lists stable 0.5.7 and older 0.4.0 downloads.
- 2021: The agn453/ZXCC repository is extracted from the stable 0.5.7 source.
- 2021-2025: Community updates improve HI-TECH C compatibility, Z80 emulation correctness, Windows support, and modern Unix/macOS builds.

### Related projects

- HI-TECH Z80 C: the CP/M compiler ZXCC commonly wraps for cross-compilation.
- CPMIO and CPMREDIR: the terminal and filesystem libraries split out from ZXCC's functionality.
- JOYCE: John Elliott's PCW emulator, which also used CPMREDIR.

### 来源

- <https://github.com/agn453/ZXCC>
- <https://superuser.com/questions/516833/emulating-cp-m-under-linux>
- <https://www.seasip.info/Unix/Zxcc/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Combined YAML source

View the package source record on GitHub. [combined/zxcc.yml](https://github.com/mxcl/pkgdb/blob/main/combined/zxcc.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
