File Layout Source files in cgen are organized in a very specific way. It makes it easy to find things. This is an overview of cgen workflow. While the architecture description is being loaded, entries not requested are discarded. What to keep is based on the MACH and ISA attributes.
Some files require heavy duty processing of the cpu description.
For example the simulator computes the instruction formats from the instruction field lists of each instruction. The results are cached so this is only done once of course. The output is post-processed to convert the strings to the actual names. Upper and lower case names are supported. String Building Output generation uses a combination of writing text out as it is computed and building text for later writing out.