1strcompact(1) General Commands Manual strcompact(1)
2
3
4
6 strcompact - string compaction for object files
7
9 strcompact [ object_name ... ]
10
12 strcompact scans the symbol and string tables of an object file looking
13 for multiple references in the symbol table to the same string. The
14 string offset of symbol table entries is updated to preserve only one
15 copy of the string.
16
17 strcompact cut the size of the kernel string table by about 25%.
18
19 The user must have write permission to the object/executable file.
20
21 strcompact writes to stderr the number of shared strings found.
22
23 strcompact exits 0 if successful, and >0 if an error occurred.
24
26 sort(1), symcompact(1), symorder(1), uniq(1)
27
29 Execution speed leaves much to be desired - on a 11/73 it takes about 4
30 minutes to process the string table of the kernel. Fortunately this is
31 only done once when the kernel is created.
32
33 Although strcompact may be run on .o files as well as executables but
34 this is probably not worth the trouble since the linker will not create
35 shared strings in the final executable.
36
37
38
393rd Berkeley Distribution January 25, 1994 strcompact(1)