mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 13:09:22 +00:00
Slightly reorganize command line options help.
This commit is contained in:
@@ -683,6 +683,17 @@ test like @samp{c >= 'A' && c <= 'Z'} guarantees this.) This was the
|
||||
default in versions of @code{gperf} earlier than 2.7; now the default is
|
||||
to support 8-bit and multibyte characters.
|
||||
|
||||
@item -l
|
||||
@itemx --compare-strlen
|
||||
Compare keyword lengths before trying a string comparison. This option
|
||||
is mandatory for binary comparisons (@pxref{Binary Strings}). It also might
|
||||
cut down on the number of string comparisons made during the lookup, since
|
||||
keywords with different lengths are never compared via @code{strcmp}.
|
||||
However, using @samp{-l} might greatly increase the size of the
|
||||
generated C code if the lookup table range is large (which implies that
|
||||
the switch option @samp{-S} is not enabled), since the length table
|
||||
contains as many elements as there are entries in the lookup table.
|
||||
|
||||
@item -c
|
||||
@itemx --compare-strncmp
|
||||
Generates C code that uses the @code{strncmp} function to perform
|
||||
@@ -767,17 +778,6 @@ with length less than the indicated byte positions work properly, since
|
||||
selected byte positions exceeding the keyword length are simply not
|
||||
referenced in the hash function.
|
||||
|
||||
@item -l
|
||||
@itemx --compare-strlen
|
||||
Compare keyword lengths before trying a string comparison. This might cut
|
||||
down on the number of string comparisons made during the lookup, since
|
||||
keywords with different lengths are never compared via @code{strcmp}.
|
||||
However, using @samp{-l} might greatly increase the size of the
|
||||
generated C code if the lookup table range is large (which implies that
|
||||
the switch option @samp{-S} is not enabled), since the length table
|
||||
contains as many elements as there are entries in the lookup table.
|
||||
This option is mandatory for binary comparisons (@pxref{Binary Strings}).
|
||||
|
||||
@item -D
|
||||
@itemx --duplicates
|
||||
@cindex Duplicates
|
||||
|
||||
Reference in New Issue
Block a user