riscv64-elf-gcc
« Back to VersTracker
Description:
GNU compiler collection for riscv64-elf
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: cross-compiler embedded riscv gcc toolchain bare-metal
Install: brew install riscv64-elf-gcc
About:
The riscv64-elf-gcc package provides the GNU Compiler Collection configured to generate code for the RISC-V architecture in a bare-metal or embedded environment. It includes the C and C++ compilers, assembler, linker, and standard libraries needed to build firmware and operating systems for RISC-V microcontrollers and processors without a host operating system.
Key Features:
  • Cross-compiler targeting 64-bit RISC-V architecture
  • Supports C, C++, and assembly languages
  • Generates bare-metal ELF binaries suitable for embedded systems
  • Includes newlib C library for embedded targets
  • Optimized code generation for RISC-V ISA extensions
Use Cases:
  • Developing firmware for RISC-V microcontrollers
  • Building operating systems and bootloaders for RISC-V hardware
  • Creating embedded applications without an underlying OS
  • Cross-platform development for RISC-V single-board computers
Alternatives:
  • llvm – LLVM/Clang provides an alternative toolchain with potentially faster compilation and different optimization strategies
  • riscv-gnu-toolchain – Upstream RISC-V GNU toolchain build system that compiles GCC from source with RISC-V specific configurations
Version History
Detected Version Rev Change Commit
Sep 11, 2025 7:13am 0 VERSION_BUMP f86712eb