OpenBSD Handbook

OpenBSD 7.9 release · amd64 · Generated 2026-09-09

gperf-3.1p0

perfect hash functions, to help write parsers

Back to search · Project homepage

Description

GPERF generates perfect hash functions for sets of key words. A perfect hash function is simply: A hash function and a data structure that allows recognition of a key word in a set of words using exactly 1 probe into the data structure. Output from the GPERF program is used to recognize reserved words in the GNU C, GNU C++, and GNU Pascal compilers, as well as with the GNU indent program. Authors: Douglas C. Schmidt and Bruno Haible Gperf was bundled with libg++. Now that libg++ has been removed from the main tree, some people may find gperf useful.

Package information

Ports path
devel/gperf
Package architecture
amd64
Maintainer
Marc Espie <espie@openbsd.org>
Categories
devel
Available flavors
None listed
Only for architectures
aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, alpha, hppa, sparc64, m88k, sh

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

None listed in sqlports.

Used by (66 dependency relationships)

Includes library, runtime, build and test relationships. Results load 100 at a time.

Installing and updating packages · Package details as JSON