# 使用 Homebrew, MacPorts, Nix 安装 bsc

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

## 安装

```sh
sudo av install brew:bsc
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bsc
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install bsc
```

  证据: MacPorts ports tree: archivers/bsc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#bsc
```

  证据: nixpkgs package indexes: pkgs/by-name/bs/bsc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:bsc
- **软件包管理器:** Homebrew
- **版本:** 2026.01
- **来源摘要:** Bluespec Compiler (BSC)
- **主页:** <https://github.com/B-Lang-org/bsc>
- **仓库:** <https://github.com/B-Lang-org/bsc>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- bluetcl (别名)
- bsc (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

The Bluespec Compiler, usually packaged as `bsc`, is the open-source compiler and toolchain for Bluespec Hardware Description Languages. It turns Bluespec SystemVerilog and Bluespec Haskell into Verilog and includes simulation, libraries, and Tcl tooling, making it a specialist but important package for hardware-language users.

### 项目历史

The BSC README says the toolchain was developed by Bluespec Inc. for almost 20 years before becoming the community-maintained open-source compiler under the B-Lang organization. That history matters because Bluespec is not a toy HDL: the README points to production designs such as Flute, Piccolo, and Shakti as evidence of prior industrial and academic use.

BSC supports two interchangeable syntactic flavors, Bluespec SystemVerilog and Bluespec Haskell/Classic. Its core language feature, Guarded Atomic Actions, lets designers describe modular rules and leaves scheduling work to the compiler. The packaged executable `bsc` emits standard Verilog, while `bluetcl` exposes Tcl scripting around the toolchain.

### 采用历史

The upstream README lists distribution packaging for Arch AUR, Fedora via Terra, Gentoo GURU/LiGurOS, Homebrew, and Nix/NixOS. The provided package facts also show Homebrew, MacPorts, and Nix packaging, so the compiler has escaped source-only installation despite its niche hardware-design audience.

BSC adoption is concentrated in hardware language, RISC-V, and research communities rather than general software development. Its packaging is valuable because HDL compilers are often difficult to build reproducibly, and a package-manager formula lowers the cost of trying existing Bluespec designs.

### 使用方式

Users compile BSV or BH source with `bsc`, use the bundled Bluesim simulator for execution, use standard libraries documented in the BSC library guide, and can automate workflows through `bluetcl`.

Because BSC emits standard Verilog, it fits into existing synthesis and simulation flows rather than requiring a wholly separate downstream hardware ecosystem.

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

BSC is package-nerd significant because it packages a full hardware-description-language compiler, simulator, standard library, and documentation set into ordinary developer package managers. That is much rarer than another linter or HTTP client.

It also represents a long-lived proprietary/research toolchain becoming open infrastructure. For maintainers, the interesting parts are large binary/source builds, generated documentation, and keeping a specialized compiler available across general-purpose package ecosystems.

### 时间线

- 2000s-2010s: Bluespec Inc. develops the toolchain for almost 20 years before the current open-source community phase.
- 2020: BSC is available through Nix/NixOS according to the upstream README's package list.
- 2020s: The B-Lang organization maintains the open-source compiler, documentation PDFs, test suite, and release artifacts on GitHub.
- 2026: The README badge points at release 2026.01 and the provided package facts show Homebrew, MacPorts, and Nix packaging.

### Related projects

- bsc-contrib is the companion repository for libraries and utilities that do not belong in the core compiler.
- BDW, the BSC Development Workstation, provides a graphical environment and source-level waveform viewing.
- Flute, Piccolo, and Shakti are cited by upstream as production or serious Bluespec designs.
- Verilog/SystemVerilog synthesis tools are downstream consumers of BSC output.

### 来源

- <https://github.com/B-Lang-org/bsc>
- <https://github.com/B-Lang-org/bsc/releases/latest/download/bsc_user_guide.pdf>
- <https://raw.githubusercontent.com/B-Lang-org/bsc/main/README.md>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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

## 其他软件包管理器记录

- Nix - bsc: normalized package name match | nixpkgs package indexes: pkgs/by-name/bs/bsc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - bsc: normalized package name match | MacPorts ports tree: archivers/bsc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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