macOS
brew install x86_64-elf-gcclocal Homebrew formula metadata
sudo port install x86_64-elf-gccMacPorts ports tree · cross/x86_64-elf-gcc/Portfile · 来源: api.github.com
安装
brew install x86_64-elf-gcclocal Homebrew formula metadata
sudo port install x86_64-elf-gccMacPorts ports tree · cross/x86_64-elf-gcc/Portfile · 来源: api.github.com
概览
GNU compiler collection for x86_64-elf
历史
x86_64-elf-gcc is GCC built as a cross compiler for the `x86_64-elf` target. Its package role is not to be a separate compiler project, but to provide the GNU Compiler Collection configured for freestanding 64-bit x86 ELF output without assuming the host operating system's headers, C library, startup files, or ABI conventions.
That makes it a standard tool for operating-system kernels, bootloaders, freestanding runtimes, and bare-metal experiments. It usually works together with `x86_64-elf-binutils`, which supplies the matching target assembler, linker, and object-file tools.
GCC began as the GNU C Compiler, written for the GNU operating system and first released in 1987. It later expanded into the GNU Compiler Collection, with official front ends for C, C++, Objective-C, Objective-C++, Fortran, Ada, Go, D, Modula-2, COBOL, Rust, Algol 68, and related runtime libraries documented by the GCC project.
The GCC governance and release story also matters to cross packages. GCC's 2.95 release in July 1999 was the first after the GCC/EGCS reunification, and the project has since been maintained by a global developer community under a steering committee. The modern GCC site emphasizes regular releases that work across native and cross targets.
Cross compilation has been central to GCC's identity because GCC supports many processors and systems. The official GCC homepage explicitly says the project aims for releases that work on a variety of native and cross targets, while OSDev documentation explains why hobby OS and kernel developers build target-specific GCCs instead of relying on the host compiler.
For `x86_64-elf`, adoption is concentrated in OSDev and freestanding x86-64 work. The target prefix lets build systems call `x86_64-elf-gcc` and get code-generation defaults for x86-64 ELF rather than the host triple. OSDev guidance also notes that a target-specific compiler removes the need to pass host-overriding options such as `-m64` for every build.
Typical users compile freestanding C or C++ with options such as `-ffreestanding`, link with a custom linker script, and provide their own runtime entry point instead of relying on a hosted C library. The compiler may also be used as the driver for assembly and linking so it selects the matching target Binutils tools.
In kernel work, x86-64 has hardware and ABI details that package users must understand beyond simply choosing this compiler. OSDev material commonly calls out issues such as separate 32-bit and 64-bit toolchains, bootloader expectations, and x86-64 red-zone behavior; the package gives the target compiler, but the build still has to define the freestanding environment correctly.
x86_64-elf-gcc is important because it packages the first serious bootstrap hurdle of hobby OS development. Instead of every user manually building a cross GCC, the package provides a stable prefixed compiler that can be dropped into Makefiles and tutorials.
It is also a clear example of how package names can describe configuration rather than upstream identity. The upstream is GCC; the meaningful package distinction is the target triple, which changes what the compiler assumes about object format, runtime, and operating-system services.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
x86_64-elf-c++ | cli | 全局可执行文件 | |
x86_64-elf-cpp | cli | 全局可执行文件 | |
x86_64-elf-g++ | cli | 全局可执行文件 | |
x86_64-elf-gcc | cli | 全局可执行文件 | |
x86_64-elf-gcc-16.1.0 | cli | 全局可执行文件 | |
x86_64-elf-gcc-ar | cli | 全局可执行文件 | |
x86_64-elf-gcc-nm | cli | 全局可执行文件 | |
x86_64-elf-gcc-ranlib | cli | 全局可执行文件 | |
x86_64-elf-gcov | cli | 全局可执行文件 | |
x86_64-elf-gcov-dump | cli | 全局可执行文件 | |
x86_64-elf-gcov-tool | cli | 全局可执行文件 | |
x86_64-elf-lto-dump | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:x86_64-elf-gcc |
|---|---|
| 版本 | 16.1.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/x86_64-elf-gcc |
| 主页 | https://gcc.gnu.org |
| 仓库 | https://gcc.gnu.org/git/gcc.git |
| 上游文档 | https://gcc.gnu.org/ |
| 许可证 | GPL-3.0-or-later WITH GCC-exception-3.1 |
| 源码归档 | https://ftpmirror.gnu.org/gnu/gcc/gcc-16.1.0/gcc-16.1.0.tar.xz |
| 最后更新 | 2026-05-01T04:23:32Z |
| Pulse | updated |
| 依赖 | gmp, libmpc, mpfr, x86_64-elf-binutils, zstd |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | x86_64-elf-gcc |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
x86_64-elf-gcc
sudo port install x86_64-elf-gcc来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.