This section shows an example of an actual startup program created for the simulator in the integrated development environment when the RX610 is selected as the CPU type.
The startup program consists of the files shown in table 7.4.
This is for the RXv1 instruction-set architecture. |
The following shows the contents of files (a) to (l).
Case when an RX instruction-set architecture other than the RXv1 instruction-set architecture is selected (exception vector table)
// #pragma stacksize su=0x100 // Remove the comment when you use user stack #pragma stacksize si=0x300 |
The following shows an example of commands for building these files.
In this example, the name of the user program file (containing the main function) is UserProgram.c, and the body of the file names (names excluding extensions) for the load module or library to be created is LoadModule.
An example of a command string for which the RXv2 instruction-set architecture was selected is shown.