Motorola SC140 user manual Compiler

Page 3

CCSC100

 

 

 

 

 

 

 

 

 

 

 

IR library

 

 

 

 

 

 

 

 

 

Compiler

 

 

files .lib

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Assembler

Object library files .elb

r e k n i L

Map files .map

“Run-time” Simulator

runsc100

-Execute Program to completion

-C file I/O capability

Cfiles

.c, .h

CCompiler Front End

IR files

.obj

Optimizer icode

Assembly files

.sl

Assembler asmsc100

Object files

.eln

sc100-ld Linker

Absolute files

.eld

[IR = Intermediate Representation]

Assembly files .asm

Listing files .lst

Interactive Simulator

simsc100

- DOS based

Figure 2. StarCore Development Process

Introduction to the SC140 Tools

3

Image 3
Contents Motorola Typical development process is represented in Figure Compiler File I/O Exercise Hands OnGood To Know Interpretation of 16-bit Integer and Fractional Data Values Integer and Fractional Arithmetic ExerciseInteger Arithmetic Compiler Support on StarCoreFractional Arithmetic Good To Know Local Optimization Local Versus Global Optimization ExerciseCompiler Support on StarCore StarCore C Compiler Global Optimization Local OptimizationMemory Alignment Exercise AA BB CC DD First Code Section Second Code Section Split Summation Exercise Code Generated Assembly Code = ∑ a i x n For 0 ≤ n L Multi-Sample ExerciseIntermediate 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 Introduction to the SC140 Tools Solutions to ExercisesAligned ExerciseExpected 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