Example Of Compiling And Executing The Demo Program; Copying The Demo Program; Compiling The Demo Program; Copying The Default Emulator Configuration File - HP 64700 Series User Manual

64000-ux case solutions for microprocessors, softkey interface
Hide thumbs Also See for 64700 Series:
Table of Contents

Advertisement

Example of Compiling and Executing the Demo Program

If you wish to step through the examples in this chapter, you must
have the appropriate C compiler for your particular emulator.
You do not have to step through the examples to learn how the
SPMT works; reading through the examples should be sufficient.
Note
The following procedure for compiling the SPMT demo program
(with the HP 64902 C Cross Compiler), modifying the emulator
configuration, and loading and running the sample program is for
the HP 64742 68000 Emulator.
Most likely, there will be differences when compiling, configuring,
and loading for other HP 64700 Series emulators.
Copying the Demo Program. The demo program can be copied
with the following command.
Compiling the Demo Program. The absolute file used to
generate the SPMT examples shown later in this chapter was
generated with the following HP 64902 68000 C Cross Compiler
command:
Copying the Default Emulator Configuration File. Since the
HP 64902 68000 C Cross Compiler provides default configuration
files for the HP 64742 68000 Emulator, copy the default emulator
configuration file to the current directory before you enter the
emulation system.
$ cp
/usr/hp64000/demo/emul/hp64742/spmt_demo.c
spmt_demo.c <RETURN>
$ cc68000 -hvOGNr hp64742 -o spmt_demo
spmt_demo.c <RETURN>
$ cp /usr/hp64000/env/hp64742/config.EA
config.EA <RETURN>
Performance Measurements 4-19

Advertisement

Table of Contents
loading

Table of Contents