Introduction Purpose This course explains how to use Mapview, a utility program for the Highperformance 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 1
Purpose of Mapview 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 2
Map File Review C File Assembly File Library File Linker Map File = Final output of machine code with all related information 3
Creating a Map File 1 Go to Toolchain configuration window 2 Select Link/Library tab 3 Select List category 4 Select Generate list 5 Select Enable all In this example, the settings apply to the Debug configuration Build project; Map file is created in project s Debug sub-folder 4 6 Click OK
Map File Contents Can be opened with text editor Shows details of the final linker output 5
Activating Mapview Two methods can be used to activate Mapview GUI Within HEW, use Tools pull-down menu Mapview From Windows Start menu, Select Renesas; High-performance Embedded Workshop; then Mapview and use Start menu 6
Snapshot of Mapview Title bar Menu bar Tool bar Section information view Symbol information view Status bar 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. 7
Using Mapview Data Mapview contains useful information for analysis and debugging: Exact location of each symbol or section Memory space each symbol or section occupies Number of times each symbol is accessed Types of optimization used 8
Study Symbols and Make Changes Exact location of each symbol or section Memory space each symbol or section occupies Number of times each symbol is accessed Types of optimization used 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 9
Find Areas for Optimization Exact location of each symbol or section Memory space each symbol or section occupies Number of times each symbol is accessed Types of optimization used 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 10
Review Symbol Usage Exact location of each symbol or section Memory space each symbol or section occupies Number of times each symbol is accessed With this information you can Determine whether frequency of access tallies with your expectations Focus on frequently used symbols when optimizing for speed Types of optimization used 11
Determine Effects of Optimization Exact location of each symbol or section Memory space each symbol or section occupies Number of times each symbol is accessed Types of optimization used With this information you can Understand changes after compiling Identify bugs more easily Review affected symbols to further optimize code 12
PROPERTIES On passing, 'Finish' button: On failing, 'Finish' button: Allow user to leave quiz: User may view slides after quiz: User may attempt quiz: Goes to Next Slide Goes to Slide After user has completed quiz After passing quiz Unlimited times
PROPERTIES On passing, 'Finish' button: On failing, 'Finish' button: Allow user to leave quiz: User may view slides after quiz: User may attempt quiz: Goes to Next Slide Goes to Slide After user has completed quiz After passing quiz Unlimited times
PROPERTIES On passing, 'Finish' button: On failing, 'Finish' button: Allow user to leave quiz: User may view slides after quiz: User may attempt quiz: Goes to Next Slide Goes to Slide After user has completed quiz After passing quiz Unlimited times
Course Summary Map file generation Map file viewing with Mapview Analysis using Mapview information Download a free evaluation copy of HEW at: www.renesas.com/hew 16