Renesas SH7058 User Manual Page 219

  • Download
  • Add to my manuals
  • Print
  • Page
    / 297
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 218
81
Section 4 Tutorial
4.1 Introduction
This section describes the main functions of the emulator by using a tutorial program.
The tutorial program is based on the C++ program that sorts ten random data items in ascending or descending
order. The tutorial program performs the following actions:
The main function repeatedly calls the tutorial function to repeat sorting.
The tutorial function generates random data to be sorted and calls the sort and change functions in
that order.
The sort function enters the array where the random data generated by the tutorial function are stored,
and sorts them in the ascending order.
The change function then sorts the array, which was sorted in ascending order by the sort function, in
descending order.
The file tutorial.cpp contains the source code for the tutorial program. The file Tutorial.abs is a
compiled load module in the Dwarf2 format.
Notes: 1. After recompilation, the addresses may differ from those given in this section.
2. This section describes general usage examples for the emulator. For the particular specifications of
each product, refer to section 3, Debugging, or the online help.
3. The operation address of Tutorial.abs attached to each product differs depending on the
product. Replace the address used in this section with the correct address in each product after
checking that it is placed on the corresponding line of the source program.
4. In this tutorial, the SH7058 E6000H emulator is taken as an example. File paths or the appearance of
figures differ depending on the product.
Page view 218
1 2 ... 214 215 216 217 218 219 220 221 222 223 224 ... 296 297

Comments to this Manuals

No comments