The _INITSCT function in the resetprg.c file of the startup routine is used to transfer variables with initial values from ROM to RAM. To add a section to be transferred, add the following description to the dbsct.c file.
In the above example, the addresses used in the INITSCT function are stored in the table in order to transfer the contents of the D, D_2, and D_1 sections to the R, R_2, and R_1 sections. Note that the location addresses of the D, D_2, D_1, R, R_2, and R_1 sections should be specified by the
-start option of the optimizing linkage editor. The relocation solution by transferring data from ROM to RAM should be specified by the -rom option of the optimizing linkage editor.