]> git.draconx.ca Git - dxcommon.git/commit
Add script for generating miscellaneous string tables.
authorNick Bowler <nbowler@draconx.ca>
Tue, 2 Mar 2021 04:15:30 +0000 (23:15 -0500)
committerNick Bowler <nbowler@draconx.ca>
Tue, 2 Mar 2021 04:16:30 +0000 (23:16 -0500)
commit1688bad1e5dc89cacf33bc426c92a4abf2bc0647
tree6f41c274168989597243bb1013da1914a132cd5e
parent7ba459d508d5e3c08580e8ec6c3dbc7c1fedd289
Add script for generating miscellaneous string tables.

When building constant C data structures it is often better to
store offsets to a string table rather than pointers.  This is
usually smaller and requires less startup time when programs
are built in PIC mode.

This script helps to generate such string tables from an input
specification, and define constants for each string offsets.
scripts/gen-strtab.awk [new file with mode: 0755]
tests/scripts.at