bug-gperf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gperf] Library


From: Gustavo Rondina
Subject: [bug-gperf] Library
Date: Thu, 6 Aug 2009 17:54:26 +0200

Hi folks!

Sorry, this is not a bug report, but I didn't know where to search for help on gperf.

Is it possible to use gperf as a library? Does such facility exist? I want to generate a perfect hash function in a code of mine where all the entries of the table will be known at some certain point, prior their uses. At that point I would like to generate the perfect hash function, but it seems gperf only works from the command line. I suppose I could writte some wrappers and scripts to print the entries from my code, manage them and then call gperf to generate the relevant hashing code, and afterwards compile the generated code and link itto my existing code and proceed with the execution, but this sounds cumbersome at best. If a way to use it as a library existed then it would make the job much easier.

Anyhow, gperf is a really nice and easy to use tool. I'm glad to have found it!

Cheers,
Gustavo


reply via email to

[Prev in Thread] Current Thread [Next in Thread]