Stuffer

java [ Java options ] Stuffer offset infile outfile ...

Descripton

If JavaDataCompact is run without the -big option, then filizing is a two-stage process with JavaDataCompact as the first stage and Stuffer as the second stage. Stuffer stuffs file data into object file(s) produced after compiling JavaDataCompact output.

Stuffer parameters come in groups of three, one group for each file that needs to be stuffed. infile is the files whose data will be read and stuffed. It will be stuffed into outfile starting at offset. Generally offset is calculated by using tools such as the UNIX dump command. Stuffer is also dependent on the space allocated for infile in outfile being contiguous.

The simplest way to use Stuffer is when JavaDataCompact has been used to generate just one C file for all of the data files. In this case, you can concatenate all of the data files together in the same order they were passed to JavaDataCompact and pass the concatenated file to Stuffer, specifying an offset of the object file section containing the data produced by JavaDataCompact. On UNIX, this is often the .rodata section and can be found by using the following shell command:

dump -h romfile.o | nawk '$$7==".rodata"{print $$5}'

See Also

JavaDataCompact