gperf - GNU Project - Free Software Foundation (FSF) (original) (raw)
gperf
[](/graphics/agnuhead.html)
Introduction| Get the Software
Introduction to 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 nestedif
s instead of a hash table, and for tuning the algorithm employed by gperf.
Online Manual is available at www.gnu.org/software/gperf/manual/gperf.html
Downloading gperf
gperf can be found on in the subdirectory /gnu/gperf/
on your favoriteGNU mirror. For other ways to obtain gperf, please readHow to get GNU Software.
The latest release ishttp://ftp.gnu.org/pub/gnu/gperf/gperf-3.3.tar.gz
The latest development sources can be obtained through thesavannah project.
Return to GNU's home page.
Please send general FSF & GNU inquiries tognu@gnu.org. There are also other ways to contact the FSF.
Please send broken links and other corrections or suggestions to<bug-gnu-gperf-antispam@antispam.gnu.org>.
Copyright (C) 1998, 2025 Free Software Foundation, Inc.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.
Updated:$Date: 2025/04/20 12:14:12 $ Author:haibleAuthor: haible Author:haible