![]() |
1
|
Create a new project in the same workspace tutorials as used in the previous tutorial project, and name the project project2.
|
2
|
3
|
To set options, choose Project>Options, and select the General Options category. On project level, the default factory settings should be used in this tutorial. Click OK.
|
5
|
Level: None (Best debug support)
|
|
6
|
Click OK and return to the Workspace window.
|
7
|
Compile the file Utilities.c. You can find the output file Utilities.sxx in the subdirectory projects\debug\list.
|
8
|
To examine the calling convention and to see how the C or C++ code is represented in assembler language, open the file Utilities.sxx.
|
1
|
Modify project2 by adding the Utilities.sxx (Utilities.s for ILINK) file that you just created and removing the Utilities.c file.
|
2
|
Select the project level node in the Workspace window, choose Project>Options. Use the default settings in the General Options, C/C++ Compiler, and Linker categories. Select the Assembler category, click the List tab, and select the option Output list file.
|
3
|
4
|
Open the list file by double-clicking the file Utilities.lst available in the Output folder icon in the Workspace window.
|
5
|
6
|
Start C-SPY to run the project2.dxx (Utilities.out for ILINK) application and see that it behaves like the application in the previous tutorial.
|