Free Software Foundation!

Join now


From Free Software Directory
Revision as of 15:42, 24 September 2012 by Mtjm (Talk | contribs)

Jump to: navigation,

a perfect hash function generator

Gperf is a perfect hash function generator. For a given list of strings, it produces a hash function and hash table in the 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 and C++ code, for emitting 'switch' statements or nested 'ifs' instead of a hash table, and for tuning the algorithm that gperf uses.


User manual available from

Heckert gnu.small.png This is a GNU package:gperf


Download version 3.1.0 (stable)
released on 5 January 2017

VCS Checkout


Related Projects


LicenseVerified byVerified onNotes
GPLv3orlaterGenium13 January 2017

Leaders and contributors

Marcel Schaible Maintainer
Eric Blake Maintainer

Resources and communication

Audience Resource type URI
Developer Mailing List Subscribe
FreeBSD Homepage
Academics Developer
NetBSD Homepage
Developer Download
Bug Tracking,Developer,Support E-mail
Guix Homepage
Developer Homepage
Debian Homepage
Developer VCS Repository Webview
Gentoo Homepage

Software prerequisites

Kind Description
Required to use libc6
Required to use libstdc++ 2.9

This entry (in part or in whole) was last reviewed on 13 January 2017.


Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.

Personal tools