PowerPC -- Linking the working source code

Generating the executable file -- ppcfinal.x

Unlike using the 68K simulator, it is a two stage process to take the object file ppcfinal.o and generate the executable file ppcfinal.x.

dld ppc.lnk ppcfinal.o -o ppcfinal.cof
ddump -I ppcfinal.cof -o ppcfinal.x

Warning:- If you don't have a valid link file for program dld, you will get an error message when using ddump (can't find ppcfinal.cof) and not when using dld.

When you have the executable file, you can run the PowerPC simulator as you ran the 68K simulator. In the Debug window request to download the file "ppcfinal.x". During the download the simulator will convert this file into "ppcfinal.out", the actual runnable file.

It is straight forward to execute these two commands directly from the command line in a DOS window. However, in the long run, you should consider configuring the SDS PowerPC GUI interface for more automatic linking.



Last modified: July 22, 1996 12:59 PM by M. Smith.
Copyright -- M. R. Smith