Grabware

Windows · Developer Tools

GNU gperf

A command-line utility to generate perfect hash functions.

Version 3.1 · by Douglas C. Schmidt

Download

Official site: gnu.org

About GNU gperf

GNU gperf is a perfect hash function generator. For a given list of strings, it produces a hash function and hash table, in form of C or C++ code, for looking up a value depending on the input string. The hash function is perfect, which means that the hash table has no collisions, and the hash table lookup needs a single string comparison only.

GNU gperf is highly customizable. There are options for generating C or C++ code, for emitting switch statements or nested ifs instead of a hash table, and for tuning the algorithm employed by gperf.

How to install GNU gperf

  1. Click Download — the developer's official website opens in a new tab.
  2. Download the latest version there and run it. Choose Custom/Advanced where offered, and skip any bundled extras.
  3. Prefer the command line? With Chocolatey you can install and update it with: choco install gnu-gperf
  4. Open GNU gperf once it finishes installing.
How to install Windows software with Chocolatey

Frequently asked questions

Is GNU gperf free to download?

Yes. The Download button sends you to gnu.org, the developer's official site, where GNU gperf is available to download. Grabware doesn't host or modify any files.

What is the latest version of GNU gperf?

The version listed here is 3.1, published /Date(1515. The developer's site always has the newest release.

How do I install GNU gperf from the command line?

With Chocolatey, run: choco install gnu-gperf. This installs it from the official source and keeps it updated.

Is GNU gperf safe?

GNU gperf downloads directly from the developer. As always, scan the installer with your antivirus and choose Custom setup to skip any bundled extras.

Alternatives to GNU gperf

More