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

Page 2
Image 2
Motorola SC140 user manual Typical development process is represented in Figure