Ch5-Visual DSP++ Development Tool

Ch5-Visual DSP++ Development Tool - Microcomputer Systems 1...

Info iconThis preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon
Microcomputer Systems 1 Visual DSP++ Development Tool
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
May 20, 2010 Veton Këpuska 2 Goals Basic Software Build Process in Visual  DSP++ Specific Blackfin issues Optimization Example using Built-In  Optimizer and Cache.
Background image of page 2
May 20, 2010 Veton Këpuska 3 Visual DSP++ Development Tool Outline Software Build Process in Visual DSP++ Explanation of Linker Description File Programming Blackfin Processors In C Developing Efficient C Code Ogg Vorbis Tremor Example
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Software Build Process in  VisualDSP++
Background image of page 4
May 20, 2010 Veton Këpuska 5 Porting C Code to Blackfin Ported C Code will Build and Execute Out-of-Box Code Can be Large and Slow If Code is to Large to fit in Internal Memory It Spills into External Memory Fetching from External Memory is Slower Optimization Switches are OFF Generates Un-optimized Functional Code Included Debug Information Default Clock Setting is Used Cache is OFF
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
May 20, 2010 Veton Këpuska 6 Software Development Flow What Files Are Involved? Source Files (.c & .asm) Compiler & Assembler Object Files (.doj) C Run-Time Header (basiccrt.s) Linker Description File (.ldf) Linker Description File (.ldf) Linker Executable File (.dxe) Debugger (In-Circuit  Emulator, Simulator,  or  EX-KIT Lite)
Background image of page 6
May 20, 2010 Veton Këpuska 7 Bootable Image   Executable File (.dxe) Loader / Splitter Boot Code   (.dxe) Boot Image (.ldr)
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
May 20, 2010 Veton Këpuska 8 C Run-Time Header (basiccrt.s) Sets Up C Run-Time  (CRT) Environment Sets up Stack Pointer Enables Cycle Counters  for Benchmarking Code Configures Cache, if  requested Change Clock/Voltage  Setting, if requested Can be Modified through  Project Options Window Add a Startup Image from VisualDSP++  Project Vizard
Background image of page 8
May 20, 2010 Veton Këpuska 9 Software Build Flow Step 1: Compilation Source Files (.c & .asm) Compiler & Assembler Object Files (.doj) C Run-Time Header (basiccrt.s) Linker Description File (.ldf) Linker Description File (.ldf) Linker Executable File (.dxe) Debugger (In-Circuit  Emulator, Simulator,  or  EX-KIT Lite)
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
May 20, 2010 Veton Këpuska 10 Software Build Process Step-1 Example: C Source main() {    int j = 12;    int k = 0;    k += j*2;    funct1(); } void func1(void) {    int var1:    foo = 1;    foo++; } cFile1.c .s C-Compiler Assembler cFile1.doj      Object Section = program       _main: // main ASM code _func1: //func1 ASM code      Object Section = stack      _j :12 _k     :0 _var1 :1
Background image of page 10
May 20, 2010 Veton Këpuska 11 Compiler-Generated Object Section  Names Compiler Uses Default Section Names that  will be used by the Linker: Name Contents program Program Instructions data1 Global and “static” Data constdata Data Declared as “const” ctor C++ Constructor Initializations cplb_code Instruction Cache Config Tables cplb_data Data Cache Config Tables
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 12
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/10/2012 for the course ECE 3551 taught by Professor Staff during the Spring '11 term at FIT.

Page1 / 43

Ch5-Visual DSP++ Development Tool - Microcomputer Systems 1...

This preview shows document pages 1 - 12. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online