Motorola SC140 user manual Typical development process is represented in Figure

Page 2

The following StarCore software development tools were used in the development of the SC140 exercises. Later versions of the SC140 tools should generate similar or better results:

Version 1.0 StarCore 100 C Compiler. Produces highly optimized code. Compiler features include ANSI C-standard compliance, fixed-point optimization, global optimization, and a standard C library.

Version 6.3.44 StarCore 100 Assembler. Translates assembly language files into machine-readable object files.

sc100-ld Linker. Links and relocates the object files and produces executable program files. Complex memory configurations can be specified, and detailed linker maps can be generated.

Version 6.3.77 StarCore 100 Simulator and Version 1.26 Run-time Simulator. The StarCore 100 simulator can run from either a text-based or a graphical user interface (GUI). A separate simulator utility (runsc100) is currently included for run-time I/O support.

Before starting the exercises, install the files in SC140_ex.zip on your computer in the following directory:

On a Windows platform: C: \MotorolaDSP\SC140\

On a UNIX platform: ~/MotorolaDSP/SC140/

The exercises directory structure and files are represented in Figure 1. This directory structure is only a recommendation; any location can be used. Once you have installed the exercise files (and if you are running on a Windows platform), all the exercises are located in:

c:\MotorolaDSP\SC140\Exercises\

This path is the reference path for all exercises discussed in this document.

Exercises

Ex1 (File I/O)

Ex2 (Integer & Fractional Arithmetic)

Ex3 (Local vs Global Optimization)

Ex4 (Memory Alignment Considerations)

Ex5 (Split Summation Technique)

Ex6 (Multi-Sample Technique)

Ex7 (Control Code: Use of the True Bit)

Ex8 (Calling an Assembly Routine from C)

Ex9 (The Challenge)

To be created

Ex2.c

Ex3_main.c & Ex3_prod.c

Ex4.asm

Ex5.c

Ex6.c

Ex7.c

Ex8.c and AddVecs.asm

Ex9.c

Figure 1. Directory Structure and Files for SC140 Exercises

A typical development process is represented in Figure 2.

2

Introduction to the SC140 Tools

Image 2
Contents Motorola Typical development process is represented in Figure Compiler Good To Know File I/O ExerciseHands On Integer and Fractional Arithmetic Exercise Interpretation of 16-bit Integer and Fractional Data ValuesCompiler Support on StarCore Integer ArithmeticFractional Arithmetic Good To Know Local Versus Global Optimization Exercise Local OptimizationCompiler Support on StarCore StarCore C Compiler Local Optimization Global OptimizationMemory Alignment Exercise AA BB CC DD First Code Section Second Code Section Split Summation Exercise Code Generated Assembly Code Multi-Sample Exercise = ∑ a i x n For 0 ≤ n LIntermediate Version Compromise Between Memory and Speed Further Speed Optimization Control Code The True Bit Exercise Save Ex7.c as Ex71.c Calling an Assembly Routine From C Exercise Current Following output should be displayed Challenge Solutions to Exercises Introduction to the SC140 ToolsExercise AlignedExpected Motorola INC Intermediate version Compromise between Memory and Speed Compiler Support on StarCore Further Optimizing the Speed Compiler Support on StarCore Compiler Support on StarCore Motorola INC Zoffset equ Moffset equ Exercise Compiler Support on StarCore Compiler Support on StarCore AN2009/D