# 使用 Homebrew 安装 aarch64-elf-gcc

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

## 安装

```sh
sudo av install brew:aarch64-elf-gcc
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install aarch64-elf-gcc
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:aarch64-elf-gcc
- **软件包管理器:** Homebrew
- **版本:** 16.1.0
- **来源摘要:** GNU compiler collection for aarch64-elf
- **主页:** <https://gcc.gnu.org>
- **最后更新:** 2026-05-26T23:37:44-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- aarch64-elf-c++ (别名)
- aarch64-elf-cpp (别名)
- aarch64-elf-g++ (别名)
- aarch64-elf-gcc (别名)
- aarch64-elf-gcc-16.1.0 (别名)
- aarch64-elf-gcc-ar (别名)
- aarch64-elf-gcc-nm (别名)
- aarch64-elf-gcc-ranlib (别名)
- aarch64-elf-gcov (别名)
- aarch64-elf-gcov-dump (别名)
- aarch64-elf-gcov-tool (别名)
- aarch64-elf-lto-dump (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

aarch64-elf-gcc is Homebrew's AArch64 ELF cross-target build of GCC, the GNU Compiler Collection. It provides target-prefixed compiler drivers such as aarch64-elf-gcc, aarch64-elf-g++, aarch64-elf-cpp, and GCC support tools.

### 项目历史

GCC development is part of the GNU Project and is aimed at improving the compiler used in GNU systems while supporting many architectures and environments. The official GCC release timeline lists early GCC 1.x releases in the late 1980s, EGCS releases beginning in 1997, GCC 3.0 in 2001, GCC 4.0 in 2005, and GCC 16.1 on April 30, 2026.

The official GCC git page publishes the HTTPS source repository and notes that the public repository includes versions and releases. Homebrew's aarch64-elf-gcc formula packages the GNU GCC release source for the aarch64-elf target rather than maintaining a separate compiler project.

### 采用历史

GCC's portability and target support made it a common base for cross-compilers in embedded, operating-system, and bare-metal development. Package managers often expose that pattern as triplet-prefixed formulae so a developer can install host and target compilers side by side.

Homebrew analytics in the official formula API show aarch64-elf-gcc as an actively installed but specialized package, consistent with cross-toolchain usage rather than general desktop compiler use.

### 使用方式

Users install aarch64-elf-gcc to compile C, C++, and preprocessed sources for AArch64 ELF targets. The package is typically used with a matching aarch64-elf-binutils install so GCC can invoke the correct assembler, linker, archiver, and object tools.

The executable prefix is the important user-facing contract: build systems can select aarch64-elf-gcc or aarch64-elf-g++ explicitly and avoid confusing the target compiler with the host system compiler.

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

This formula matters because GCC cross-compilers are where package management, compiler configuration, target triplets, runtime libraries, and Binutils compatibility all meet. A small formula name encodes a large amount of toolchain policy.

For package nerds, aarch64-elf-gcc is also a useful signal that the package is for bare-metal or freestanding ELF work, not the host's native AArch64 operating-system ABI.

### 时间线

- 1988: The official GCC release timeline lists GCC 1.27.
- 1997: EGCS 1.0 appears in the GCC release timeline.
- 2001: GCC 3.0 appears in the GCC release timeline.
- 2026: GCC 16.1 is released on April 30, 2026.
- 2026: Homebrew's aarch64-elf-gcc formula packages GCC 16.1.0 for aarch64-elf cross development.

### Related projects

- GNU Binutils provides the assembler, linker, and object utilities commonly paired with GCC cross-compilers.
- GDB is the debugger commonly paired with GCC and Binutils in GNU cross-development toolchains.
- The aarch64-elf-binutils and aarch64-elf-gdb Homebrew formulae are target-matched companions.

### 来源

- <https://formulae.brew.sh/api/formula/aarch64-elf-gcc.json>
- <https://gcc.gnu.org/gccmission.html>
- <https://gcc.gnu.org/git.html>
- <https://gcc.gnu.org/releases.html>


## 安全说明

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/aarch64-elf-gcc.yml](https://github.com/mxcl/pkgdb/blob/main/combined/aarch64-elf-gcc.yml)


## 来源

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