# 使用 Homebrew, dnf, MacPorts 安装 cloog

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

## 安装

```sh
sudo av install brew:cloog
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cloog
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cloog
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install cloog
```

  证据: Fedora Rawhide package metadata: cloog from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

## 软件包事实

- **软件包键:** brew:cloog
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cloog>
- **版本:** 0.21.1
- **来源摘要:** Generate code for scanning Z-polyhedra
- **主页:** <https://github.com/periscop/cloog>
- **仓库:** <https://github.com/periscop/cloog>
- **上游文档:** <https://github.com/periscop/cloog#readme>
- **许可证:** LGPL-2.1-or-later
- **源码归档:** <https://github.com/periscop/cloog/releases/download/cloog-0.21.1/cloog-0.21.1.tar.gz>
- **最后更新:** 2026-06-22T14:03:02-07:00
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- cloog (cli)
- cloog (别名)

## 依赖

- gmp
- isl

## 构建依赖

- pkgconf

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.21.1
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://github.com/periscop/cloog
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

CLooG, the Chunky Loop Generator, is a C software tool and library for generating loops that scan Z-polyhedra. Its official manual says it was originally written to solve code generation problems for optimizing compilers based on the polytope model.

### 项目历史

The README records the first version of that file in January 2002, and the Texinfo manual records its first version in July 2002 with a 1.0 release on September 17, 2002. The manual names Cedric Bastoul as author and describes CLooG as part of the Chunky project for data locality improvement.

CLooG's core technical role is polyhedral code generation: given affine constraints and context, it emits pseudo-code or near-compilable code that visits integral points efficiently while avoiding unnecessary control overhead.

### 采用历史

The manual says CLooG was used beyond optimizing compilers, including control automata for high-level synthesis and polynomial approximation, and was designed to serve as a back end for automatic parallelizers such as LooPo.

The supplied input shows packaging in Homebrew, dnf, and MacPorts. The official README and build docs also describe classic Unix source distribution concerns: configure, make, make install, GMP, PolyLib, and isl backends.

### 使用方式

Users run cloog, optionally with an input file, or call CLooG as a library. The README describes input as affine inequalities over polyhedra and context parameters, and output as scanning code such as nested loops.

Build-time usage is typical autotools C: from Git, fetch submodules and run autogen.sh, then configure, make, and make install. The README documents options for isl, PolyLib, GMP, integer size, and installation prefix.

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

CLooG matters to compiler-package maintainers because it is a small specialized C library in the polyhedral optimization stack, with optional and historical dependencies such as isl, PolyLib, and GMP. Its packaging exposes the intersection of research compiler tooling and Unix library build systems.

The changelog shows evolution around isl and OpenScop support, including OpenScop input in 0.17.0 and OpenScop coordinate/loop extensions in later 0.18.x releases. That makes it a useful marker package for polyhedral-model toolchains.

### 时间线

- 2001: Manual title page includes a September 2001 origin note.
- 2002: README first version recorded in January; manual first version recorded in July; release 1.0 recorded on September 17.
- 2004: Manual asks users to cite Bastoul's PACT paper on code generation in the polyhedral model.
- 2005: Manual records release 2.0 on November 21.
- 2007: Manual records release 2.1 on October 15.
- 2011: Changelog records 0.17.0 with OpenScop input support and isl backend updates.
- 2012: Changelog records 0.18.0 with isl 0.11.1, OpenMP/vectorization annotations, and OpenSCoP coordinates extension.
- 2014: Changelog records 0.18.3 with isl 0.14 and OpenScop loop extension support.
- 2015: Manual edition 2.1.2 updated July 27, 2015.

### Related projects

- Related projects and dependencies include Chunky, PolyLib, isl, GMP, OpenScop, and LooPo. The manual also connects CLooG to automatic parallelizers and the wider polyhedral compilation model.

### 来源

- <https://github.com/periscop/cloog/blob/master/README>
- <https://github.com/periscop/cloog/blob/master/doc/cloog.texi>
- <https://github.com/periscop/cloog/blob/master/ChangeLog>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cloog
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- dnf - cloog - 0.18.4-24.fc44: normalized package name match | Fedora Rawhide package metadata: cloog from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | The Chunky Loop Generator | http://www.cloog.org
- dnf - cloog-devel - 0.18.4-24.fc44: normalized package name match | Fedora Rawhide package metadata: cloog-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development tools for the Chunky Loop Generator | http://www.cloog.org
- MacPorts - cloog: normalized package name match | MacPorts ports tree: devel/cloog/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [mcpp](https://www.automicvault.com/zh-hans/pkg/brew/mcpp/) - Shares av.db curated category or tags: cli, compiler-tools, compilers, developer-tools.
- [aarch64-elf-gcc](https://www.automicvault.com/zh-hans/pkg/brew/aarch64-elf-gcc/) - Shares av.db curated category or tags: cli, compilers, developer-tools.
- [adaptivecpp](https://www.automicvault.com/zh-hans/pkg/brew/adaptivecpp/) - Shares av.db curated category or tags: cli, compilers, developer-tools.
- [arm-linux-gnueabihf-binutils](https://www.automicvault.com/zh-hans/pkg/brew/arm-linux-gnueabihf-binutils/) - Shares av.db curated category or tags: cli, compilers, developer-tools.
- [arm-none-eabi-binutils](https://www.automicvault.com/zh-hans/pkg/brew/arm-none-eabi-binutils/) - Shares av.db curated category or tags: cli, compilers, developer-tools.
- [arm-none-eabi-gcc](https://www.automicvault.com/zh-hans/pkg/brew/arm-none-eabi-gcc/) - Shares av.db curated category or tags: cli, compilers, developer-tools.
- [bnfc](https://www.automicvault.com/zh-hans/pkg/brew/bnfc/) - Shares av.db curated category or tags: cli, compilers, developer-tools.
- [bunster](https://www.automicvault.com/zh-hans/pkg/brew/bunster/) - Shares av.db curated category or tags: cli, compilers, developer-tools.
- [dhall-bash](https://www.automicvault.com/zh-hans/pkg/brew/dhall-bash/) - Local package facts share a topical domain. Shared terms: cli, code, code-generation, compiler, developer.
- [cargo-generate](https://www.automicvault.com/zh-hans/pkg/brew/cargo-generate/) - Local package facts share a topical domain. Shared terms: cli, code, code-generation, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/cloog.yml](https://github.com/automic-vault/db/blob/main/combined/cloog.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
