Presentation is loading. Please wait.

Presentation is loading. Please wait.

© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This course explains how to use Mapview, a utility program for the.

Similar presentations


Presentation on theme: "© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This course explains how to use Mapview, a utility program for the."— Presentation transcript:

1 © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This course explains how to use Mapview, a utility program for the High- performance Embedded Workshop (HEW) development environment for microcontrollers (MCUs) from Renesas Technology Corp. Objectives  Learn how to generate a map file  Know how to activate the Mapview utility and identify the components  Understand how to use the information provided in Mapview Content  16 pages  3 questions Learning Time  25 minutes

2 © 2008, Renesas Technology America, Inc., All Rights Reserved 2 HEW GUI utility Opens map files Presents stored map-file information in easy-to-read format  Section or symbol name  Start and End addresses  Size  Type  Optimization Helps with debugging and analysis Purpose of Mapview

3 © 2008, Renesas Technology America, Inc., All Rights Reserved 3 Map File Review C FileAssembly FileLibrary File Linker Map File = Final output of machine code with all related information

4 © 2008, Renesas Technology America, Inc., All Rights Reserved 4 Creating a Map File Go to Toolchain configuration window Select List category Select Enable all Select Link/Library tab In this example, the settings apply to the Debug configuration 1 2 5 3 Click “OK” 6 Build project; Map file is created in project’s Debug sub-folder Select Generate list 4

5 © 2008, Renesas Technology America, Inc., All Rights Reserved 5 Map File Contents  Can be opened with text editor  Shows details of the final linker output

6 © 2008, Renesas Technology America, Inc., All Rights Reserved 6 Activating Mapview Two methods can be used to activate Mapview GUI Within HEW, use Tools pull-down menu From Windows ® Start menu, Select Renesas; High-performance Embedded Workshop; then Mapview and use Start menu Mapview

7 © 2008, Renesas Technology America, Inc., All Rights Reserved 7 Snapshot of Mapview Title bar Menu bar Tool bar Section information view Status bar Symbol information view Optimization information view To load a map file, select “File” and then “Open,” or press “Control” plus “O” keys. Then select the map file you want to analyze.

8 © 2008, Renesas Technology America, Inc., All Rights Reserved 8 Using Mapview Data Mapview contains useful information for analysis and debugging: Types of optimization used Exact location of each symbol or section Memory space each symbol or section occupies Number of times each symbol is accessed

9 © 2008, Renesas Technology America, Inc., All Rights Reserved 9 With this information you can Directly amend any symbol without recompiling the codes View the allocated data in each section after compiling Ensure that symbols do not overflow into unused or undesired areas Plan new sections for more efficient memory use Study Symbols and Make Changes Types of optimization used Exact location of each symbol or section Memory space each symbol or section occupies Number of times each symbol is accessed

10 © 2008, Renesas Technology America, Inc., All Rights Reserved 10 With this information you can Focus optimization on symbols or sections with the largest code size Determine whether data in Constant and Initial Data areas could be eliminated Find Areas for Optimization Types of optimization used Exact location of each symbol or section Memory space each symbol or section occupies Number of times each symbol is accessed

11 © 2008, Renesas Technology America, Inc., All Rights Reserved 11 With this information you can Determine whether frequency of access tallies with your expectations Focus on frequently used symbols when optimizing for speed Review Symbol Usage Types of optimization used Exact location of each symbol or section Memory space each symbol or section occupies Number of times each symbol is accessed

12 © 2008, Renesas Technology America, Inc., All Rights Reserved 12 With this information you can Understand changes after compiling Identify bugs more easily Review affected symbols to further optimize code Determine Effects of Optimization Types of optimization used Exact location of each symbol or section Memory space each symbol or section occupies Number of times each symbol is accessed

13

14

15

16 © 2008, Renesas Technology America, Inc., All Rights Reserved 16 Map file generation Map file viewing with Mapview Analysis using Mapview information Course Summary Download a free evaluation copy of HEW at: www.renesas.com/hew


Download ppt "© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This course explains how to use Mapview, a utility program for the."

Similar presentations


Ads by Google