parallel-struct
Create parallel tables from list of structures.
Synopsis
parallel-struct [-M file] [-o file] [-I directory] [-s section] structs
Description
Create tables for each field in a list of structures.
It generates an assembler source file containing all the created objects.
Supported Options
-h,--help- Show help message and exit.
-M file- Write gcc-style dependency information to
file. -o file- Write generated assembly code to
file. -s section,--section section- Put generated objects in section
section.
Structue File
The structures file uses YAML syntax.
Settings
Global settings are specified in the settings section of the structure file.
default_string_encoding encoding- The default encoding used for string values. (default:
default_string_encoding) include_count {yes|no}- (default:
yes) prefix string- Prefix for object names. (default: empty)
Fields
The fields of the structures are defined in the fields section of the structure file.
default_value value- Value to use if not specified in struct. Values of other fields can be used with the syntax
{{field}}. Due to YAML syntax rules, if it starts with a field reference, the default value has to be enclosed in". (default: none) encoding encoding- Encoding used for string values. (default:
default_string_encodingfrom global settings) length number- (default: 1)
nul_terminate {yes|no}- If set, a NUL character will be appended to string values. (default:
no) padding padding- (default:
for string fields, 0 for others.) type type-
(default:
single)multi:omit:single:string:
Structures
The actual structures are listed in the structs section of the structure file.