1 Introduction Purpose  This course gives an overview of assembler settings of the High-performance Embedded Workshop (HEW), used for developing software.

Slides:



Advertisements
Similar presentations
SYMBOL TABLES &CODE GENERATION FOR EXECUTABLES. SYMBOL TABLES Compilers that produce an executable (or the representation of an executable in object module.
Advertisements

Renesas Technology America Inc. 1 SKP8CMINI-15,17 Tutorial 2 Creating A New Project Using HEW4.
Module 6: Introduction to C Language ITEI102 Introduction to Programming Structure of C++ Program - Programming Terminologies - Microsoft Visual Studio.
Chapter 10 Linking and Loading. Separate assembly creates “.mob” files.
Code Composer Department of Electrical and Computer Engineering
The Assembly Language Level
SYSTEM PROGRAMMING & SYSTEM ADMINISTRATION
Getting Started: Ansoft HFSS 8.0
Lab6 – Debug Assembly Language Lab
COSC 120 Computer Programming
Assemblers Dr. Monther Aldwairi 10/21/20071Dr. Monther Aldwairi.
 2000 Deitel & Associates, Inc. All rights reserved. Chapter 17 - The Preprocessor Outline 17.1Introduction 17.2The #include Preprocessor Directive 17.3The.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 13 - The Preprocessor Outline 13.1Introduction.
 2000 Prentice Hall, Inc. All rights reserved. Chapter 13 - The Preprocessor Outline 13.1Introduction 13.2The #include Preprocessor Directive 13.3The.
Macro & Function. Function consumes more time When a function is called, the copy of the arguments are passed to the parameters in the function. After.
Chapter 3: Introduction to C Programming Language C development environment A simple program example Characters and tokens Structure of a C program –comment.
SKP8CMINI-15,17 Tutorial 1 Software Development Process using HEW4
M16C/Tiny SKP Tutorial 1 Software Development Process using HEW4
Introduction Purpose Objectives Content Learning Time
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
1 Introduction to Tool chains. 2 Tool chain for the Sitara Family (but it is true for other ARM based devices as well) A tool chain is a collection of.
Chapter 2 Software Tools and Assembly Language Syntax.
Renesas Technology America Inc. 1 M16C/Tiny SKP Tutorial 2 Creating A New Project Using HEW4.
OBJECT MODULE FORMATS. The object module format we have employed as an educational device is called OMF (relocatable object format). It’s one of the earliest.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course provides an overview of the installation and.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Purpose  This training course describes how to configure the the C/C++ compiler options.
A Simple Two-Pass Assembler
Introduction Purpose This course describes the process of installing the KPIT GNU toolchain on your PC. Objective Learn how easy it is to get information.
Chapter 3 Elements of Assembly Language. 3.1 Assembly Language Statements.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Purpose  This training module provides an overview of optimization techniques used in.
Macros. There are three basic phases for C programming. preprocessing, compiling, and linking. C input file is first passed to a preprocessing program.
GDT Development Tutorial. GDT Development Tutorial Doug Evans and Detlef Lexut GDT 2008 International User Conference August 10 – 13  Lake Las Vegas,
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  The course describes the performance analysis and profiling tools.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
® 2-2 Projects 2.1Projects Overview Bootable Projects and VxWorks Configuration Integrated Simulator Downloadable Projects Build Specifications.
Introduction to Eclipse CSC 216 Lecture 3 Ed Gehringer Using (with permission) slides developed by— Dwight Deugo Nesa Matic
Introduction Purpose This training course covers debugging an application on an SH target in the Renesas HEW (High-performance Embedded Workshop) development.
Property of Jack Wilson, Cerritos College1 CIS Computer Programming Logic Programming Concepts Overview prepared by Jack Wilson Cerritos College.
Algorithms  Problem: Write pseudocode for a program that keeps asking the user to input integers until the user enters zero, and then determines and outputs.
Programmable Logic Training Course HDL Editor
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training module provides an overview of debugging features.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This course gives an overview of the Toolchain feature of the High.
Renesas Technology America Inc. 1 M16C Seminars Lab 3 Creating Projects Using HEW4 14 March 2005 M16C Seminars Lab 3 Creating Projects Using HEW4 Last.
Oct 2001ANSI C Under Unix (v1.0)1 UNIX C Programming under Unix written and presented by M.T.Stanhope.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course explains how to use section setting and memory.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This course explains how to use Mapview, a utility program for the.
PestPac Software. Pay On Commission Commission can be paid on Production, Receipt, or Up-Front. Production: Commission will be paid when work is completed/an.
THE PREPROCESSOR
The Preprocessor Directives Introduction Preprocessing – Occurs before program compiled Inclusion of external files Definition of symbolic constants.
Introduction to Programming Python Lab 5: Strings and Output 05 February PythonLab5 lecture slides.ppt Ping Brennan
 2000 Prentice Hall, Inc. All rights reserved. Chapter 13 - The Preprocessor Outline 13.1Introduction 13.2The #include Preprocessor Directive 13.3The.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course describes Coverage, a utility that is used.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course demonstrates the Project Generator function.
Integrating Components and Dynamic Text Boxes with the Animated Map– Lesson 101 Integrating Components and Dynamic Text Boxes with the Animated Map Lesson.
LECTURE 3 Translation. PROCESS MEMORY There are four general areas of memory in a process. The text area contains the instructions for the application.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course demonstrates the use of the High-performance.
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
Lecture 3 Translation.
COM S 326X Deep C Programming for the 21st Century Prof. Rozier
Getting Eclipse for C/C++ Development
Introduction Purpose Objectives Content Learning Time
Algorithms Problem: Write pseudocode for a program that keeps asking the user to input integers until the user enters zero, and then determines and outputs.
Introduction to C Topics Compilation Using the gcc Compiler
Introduction to Programming
A Simple Two-Pass Assembler
Introduction to Programming
Getting Eclipse for C/C++ Development
Conditional Compilation
Presentation transcript:

1 Introduction Purpose  This course gives an overview of assembler settings of the High-performance Embedded Workshop (HEW), used for developing software for embedded systems built with microcontrollers (MCUs) from Renesas Technology Corp. Objectives  Understand the five main categories of assembler configuration  Learn how the settings affect the assembler compilation process Content  28 pages  2 questions Learning Time  35 minutes

2 Invoke Assembler Configuration Steps to invoke Assembler toolchain configuration  Click on Build  Select the H8 Standard Toolchain Assembler settings for a specific project or file configuration can be selected here Corresponding command- line entries for all settings appear in HEW linker dialog

3 Five categories of options Options in Assembler To configure the source-file related information; for example, location of the include files, etc. To configure the output: debug information, optimization, output file directory, and more To adjust the symbol access format To adjust the symbol access format To select what will be provided in the list file To configure various other options, including those that are user-defined To configure various other options, including those that are user-defined 1. Source 2. Object 3. List 4. Tuning 5. Other 1. Source 2. Object 3. List 4. Tuning 5. Other

4 Source-file Related Information Source Settings  Include file directories - Specifies destination path name of included files  Defines - Defines replacement string literal  Preprocessor variables - Defines integer and character preprocessor variables

5 Include File Directories Source settings  Include file directories - Specifies directory of files to be included or linked to current source program Example: HEW workspace named “tutorial” contains “header.h” file at: C:\tutorial\tutorial\include\header.h The steps shown here would be required to add/include the “header.h” file to the current source program search list.

6 Defines Source settings  Defines - Based on same concept as “.DEFINE” directive Example: SYM2:. DEFINE “r2” : mov.wSYM2, r1 : “SYM2” will be replaced with r2 at assembly.

7 Preprocessor Variables Source settings  Preprocessor variables - Has same concept as “.ASSIGNA” and “.ASSIGNC” directives. Example: FLAG:.ASSIGNC “ON” :.AIF“\&FLAG” EQ “ON” mov.wr2, r1.AENDI : FLAG is set to ON. if FLAG = ON, then “mov.wr2, r1” is assembled.

8 Five categories of options Options in Assembler To configure the source-file related information; for example, location of the include files, etc. To configure the output: debug information, optimization, output file directory, and more To adjust the symbol access format To adjust the symbol access format To select what will be provided in the list file To configure various other options, including those that are user-defined To configure various other options, including those that are user-defined 1. Source 2. Object 3. List 4. Tuning 5. Other 1. Source 2. Object 3. List 4. Tuning 5. Other

9 Configuring Assembler Output Object settings  Debug information  Generate assembly source file after preprocess  Optimize  Default of branch displacement size  Generate file for inter- module optimization  Output file directory

10 Information for Debugging Object settings  With/without debug information - Specifies whether or not debugging information will be output - Valid only when object module is generated - Default: “Without debug information” (i.e., no debug information is produced)

11 Source File after Preprocess Object settings  Generate assembly source file after preprocess - Outputs an assembler source file for which macro expansion, conditional assembly, structured assembly, and file inclusion have been performed - When this option is specified, no object is generated Example of Macro expansion:.MACROMCO, RnExpanded results: add\Rn, \Rnaddr1, r1 inc.w\Rninc.wr1.ENDM MCOr1addr2, r2 MCOr2inc.wr2

12 Adjust PC-related Instructions Object settings  Optimize - If selected, the assembler will adjust the the displacement size of register-indirect with displacement instructions, and the address size of the absolute addressing format - This option is valid for executable instructions when a displacement (:8 or :16) is not specified, or an allocated size (:8, :16, :24, or :32) of an absolute address is not specified.

13 Size of Branch Displacement Object settings  Default of branch displacement size - This option specifies the default size for the number of bits used to represent displacement for branch instruction - Default bit setting depends on CPU type This option is valid when a displacement size (8 or 16 bit) is specified and the optimize option is not specified. Default bit settings: 8 bits for H8/300, H8/300L, H8/300HN, H8S/2000N, H8S/2600N, and H8SXN CPU types 16 bits for H8/ 300HA, H8S/2000A, H8S/2600A, H8SXM, H8SXA, and H8SXX CPU types

14 Inter-module Optimization Object settings  Generate file for inter- module optimization - Outputs additional information for inter-module optimization  Output file directory - Controls object module output

16 Five categories of options Options in Assembler To configure the source-file related information; for example, location of the include files, etc. To configure the output: debug information, optimization, output file directory, and more To adjust the symbol access format To adjust the symbol access format To select what will be provided in the list file To configure various other options, including those that are user-defined To configure various other options, including those that are user-defined 1. Source 2. Object 3. List 4. Tuning 5. Other 1. Source 2. Object 3. List 4. Tuning 5. Other

17 Contents of List File List settings  Generate list file - Controls output of assembly listing  Source program - Controls output of source program listing  Cross Reference - Controls output of cross- reference listing  Section - Controls output of section information listing Source program: Cross reference: Section:

18 List File Generation List Settings  Generate list file - Select this option to output an assembly listing

19 Include/Exclude Source Program List settings  Source program - Choice of “Shown” (include) or “Not shown” (exclude) - Default setting is “Shown,” so source program will be included in Assembly list file if “Generate list file” box is not checked

20 Contents of Source Program List List settings  Conditionals - Unsatisfied.AIF or.AIFDEF statements  Definitions - Macro definition parts,.AREPEAT and.AWHILE definition parts,.INCLUDE directive statements,.ASSIGNA and.ASSIDGNC directive statements  Call - Macro call statements.AIF,.AIFDEF, and.AENDI directive statements  Expansions - Macro expansion statements.AREPEAT and.AWHILE expansion statements  Structured - Structured assembly expansion statements  Code - Object code lines exceeding the source statement lines

21 Cross Reference, Section List settings  Cross reference - Specifies whether or not to output a cross reference listing to the Assembly listing  Section - Specifies whether or not to output a section information listing to the Assembly listing Defaults: Default setting for both Cross reference and Section is “Shown.” Thus, each will be included in Assembly listing unless “Not shown” is selected.

22 Five categories of options Options in Assembler To configure the source-file related information; for example, location of the include files, etc. To configure the output: debug information, optimization, output file directory, and more To adjust the symbol access format To adjust the symbol access format To select what will be provided in the list file To configure various other options, including those that are user-defined To configure various other options, including those that are user-defined 1. Source 2. Object 3. List 4. Tuning 5. Other 1. Source 2. Object 3. List 4. Tuning 5. Other

23 Symbol Access Format Tuning settings  Option to set - Specifies whether symbols to be accessed in 8-bit or 16-bit absolute address format  Specify all symbols - All symbols are set according to the format

24 Restricting the Access Format Tuning settings  Set symbol - “Specify all symbols” box is not checked, but sym1 and sym3 are entered - Only sym1 & sym3 are accessed in 8-bit absolute address (sym2 remains unchanged; it is accessed in 32-bit absolute address) Example:.IMPORT sym1, sym2, sym3 r1;8bit r2;32bit r3;8bit

25 Five categories of options Options in Assembler To configure the source-file related information; for example, location of the include files, etc. To configure the output: debug information, optimization, output file directory, and more To adjust the symbol access format To adjust the symbol access format To select what will be provided in the list file To configure various other options, including those that are user-defined To configure various other options, including those that are user-defined 1. Source 2. Object 3. List 4. Tuning 5. Other 1. Source 2. Object 3. List 4. Tuning 5. Other

26 Options in “Other” Category “Other” settings  Miscellaneous options - Control output of the symbol information on import symbols that have not been referenced  User-defined options - Add information that is not available for a setting can be included as command line Example: sym1 & sym3 are set to 8-bit absolute address, but all other symbols must be set to 16-bit absolute address. Instead of inputting all of the other symbols, a command line can be added.

28 Categories for H8 Assembler configuration Assembler settings within each category and what they do Course Summary Download a free evaluation copy of HEW at: