1 / 33

SDK for PACDSP

SDK for PACDSP. Feb. 2010 STC/ITRI 吳琦. Toolchain Development Items from Our Site. Compiler: Developed from Open64/ORC Assembler/Linker: Developed from GNU Binutils Debugger: Developed from GNU GDB Runtime Library: Developed from RedHat Newlib IDE: Developed from Eclipse.

floria
Download Presentation

SDK for PACDSP

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SDK for PACDSP Feb. 2010 STC/ITRI 吳琦

  2. Toolchain Development Items from Our Site • Compiler: • Developed from Open64/ORC • Assembler/Linker: • Developed from GNU Binutils • Debugger: • Developed from GNU GDB • Runtime Library: • Developed from RedHat Newlib • IDE: • Developed from Eclipse

  3. Primitive Code Generation for PAC DSP • Essential supports (IA-64  PAC DSP) • New Target_Info • PAC DSP Architecture and ISA descriptions • Complicated hazard descriptions • PAC DSP application-binary-interface (ABI) • data type mapping • memory usage layout • register usage conventions • calling conventions • PAC DSP code generation • 32-bit WHIRL code generation • PAC WHIRL-to-CGIR procedures • VLIW instruction scheduling for PAC DSP • PAC DSP assembly code emission

  4. Effective Register Allocation • A direct and fast heuristic approach using data dependency (CPC 2006, CPE) • PALF Register Allocation Scheme • A simulated-annealing (SA) approach (LCPC 2005, J.VLSI Signal Processing) • Random based nondeterministic iterative search • Time-consuming • Provide reference numbers for further register allocation heuristic design • A hybrid approach combining PALF and SA • Best result of all and faster than SA • Global register allocation referring to PALF • Local conscious (CPC 2007)

  5. Integrated toolchain by IDE • Compiler: • Developed from Open64/ORC • Assembler/Linker: • Developed from GNU Binutils • Debugger: • Developed from GNU GDB • Runtime Library: • Developed from RedHat Newlib • IDE: • Developed from Eclipse

  6. Operation of PACSDK IDE

  7. 安裝目錄結構與內容 Documents contains all PACDSP SDK documents. gdbcontains PACDSP GDB binary code. iss contains PACDSP ISS binary code. misc contains PACDSP PMP EVB boot program and Multi-ICE configuration file. newlib contains PACDSP Newlib C Library binary code. newlib_PMP contains PACDSP Newlib C Library for PMP EVB board binary code. PACIDE contains PACDSP IDE binary code. testsuite contains 8 testsuites for PACDSP. USB_Probe_Driver contains USB probe driver for PMP EVB board. usr contains PACDSP Binutil and C Compiler binary code. workspace contains sample project for PACIDE. set_env.sh Evironment variables setting script.

  8. 建立新專案 Switch to C/C++ perspective 建立新PACDSP C Project

  9. 設定Project properties 程式專案中若有用到外來的Header file或函式庫,請進行以下設定: 設定C Compiler properties Directories: Add header directory. Miscellaneous: Add compiler options or flags. 設定C Linker properties Libraries (-l): Add library name Libraries (-L): Set library searching path

  10. 建立程式碼 Using right click to create new source file Entering file name Implements program body Save and build automatically

  11. 使用ISS執行 Click Run button on the toolbar Choose Project and Application Click Run button Results will show in Console tab

  12. Debug with PACDSP GDB Click Run/Debug to debug a PAC Local Application In Main tab, browse your project and C/C++ application. In Debugger tab, select “GDB Debugger (PAC)” Click “Debug” button to switch to debug perspective and start debugging

  13. Debug with PACDSP GDB –Cont Windows: Debug window Variable window Register window Source code window Disassembly window Console window Actions: step into resume break point

  14. Debug with PACDuo EVB Board Click Start_Probe_Driver tab in the External Tools combo box

  15. Debug with PACDuo EVB Board Click Run/Debug to debug a PAC Application attach to EVB Setting Project, Application and Debugger(PAC) Click Debug button

  16. Thank you!

More Related