2.0. C/C++ Compiler and Library. Manual for ADSP-21xxx DSPs. Third Revision, September, Part Number

Size: px
Start display at page:

Download "2.0. C/C++ Compiler and Library. Manual for ADSP-21xxx DSPs. Third Revision, September, Part Number"

Transcription

1 2.0 C/C++ Compiler and Library Manual for ADSP-21xxx DSPs Third Revision, September, 2001 Analog Devices, Inc. Digital Signal Processor Division One Technology Way Norwood, Mass Part Number

2 Copyright Information Analog Devices, Inc., ALL RIGHTS RESERVED. This document may not be reproduced in any form without prior, express written consent from Analog Devices, Inc. Printed in the USA. Disclaimer Analog Devices, Inc. reserves the right to change this product without prior notice. Information furnished by Analog Devices is believed to be accurate and reliable. However, no responsibility is assumed by Analog Devices for its use; nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under the patent rights of Analog Devices, Inc. Trademark and Service Mark Notice he Analog Devices logo, VisualDSP, the VisualDSP logo, SHARC, and the SHARC logo are registered trademarks; VisualDSP++, the VisualDSP++ logo, and EZ-KIT Lite are trademarks of Analog Devices, Inc. Adobe and Acrobat are registered trademarks of Adobe Corporation. Intel is registered trademark of Intel Corporation. Microsoft and Windows are registered trademarks and Windows NT is a trademark of Microsoft Corporation. All other brand and product names are trademarks or service marks of their respective owners. Rev. 3.0

3 INTRODUCTION Supported Processors For Additional Product Information For Technical or Customer Support Purpose of This Manual Intended Audience Manual Contents Description What s New in This Manual Related Documents Conventions COMPILER Overview Compiler Command-Line Interface Running the Compiler C/C++ Compiler Switches C/C++ Compiler Switch Summaries C/C++ Mode Selection Switch Descriptions iii

4 C/C++ Compiler Common Switch Descriptions C++ Mode Compiler Switch Descriptions Data Type Sizes Integer Floating Point Optimization Control Inlining Control Interprocedural Analysis C/C++ Compiler Language Extensions Inline Function Support Keyword (inline) Inline Assembly Language Support Keyword (asm) Assembly Construct Template Assembly Construct Operand Description Assembly Constructs With Multiple Instructions Assembly Construct Reordering and Optimization Restrictions on the Use of the asm Construct Assembly Constructs with Input and Output Operands Assembly Constructs and Macros Dual Memory Support Keywords (pm dm) Memory Keywords and Assignments/Type Conversions Memory Keywords and Function Declarations/Pointers Memory Keywords and Function Arguments Memory Keywords and Macros Placement Support Keyword (section) iv

5 Boolean Type Support Keywords (bool, true, false) Pointer Class Support Keyword (restrict) Variable-Length Array Support Non-Constant Initializer Support Indexed Initializer Support Aggregate Constructor Expression Support Preprocessor Generated Warnings C++ Style Comments Compiler intrinsic Functions Access to System Registers C++ Fractional Type Support Format of Fractional Literals Conversions Involving Fractional Values Fractional Arithmetic Operations Mixed Mode Operations Saturated Arithmetic SIMD Support Annotation (#pragma SIMD_for) Using SIMD Mode with Multichannel Data Using SIMD Mode with Single Channel Data Pitfalls in Using SIMD C/C SIMD_for Syntax Constraints on Using SIMD C/C Impact of Anomaly #40 on SIMD Examples Using SIMD C (Problem Cases Data Increments) v

6 Examples Using SIMD C (Problem Cases Data Alignment) Performance When Using SIMD C/C Preprocessing a Program Predefined Macros Header Files Writing Macros Support for Multiple Heaps Heap Identifiers Using Alternate Heaps with the Standard Interface Using the Alternate Heap Interface Re-initializing Heaps Creating Heap Descriptor Records Allocating Heap Storage Areas Initializing Heaps Example C program C/C++ Run-Time Model C/C++ Run-Time Environment Memory Usage Compiler Registers User Registers Call Preserved Registers Scratch Registers Stack Registers Alternate Registers vi

7 Managing the Stack Transferring Function Arguments and Return Value Using Data Storage Formats Using the Run-Time Header C/C++ and Assembly Interface Calling Assembly Language Subroutines from C/C++ Programs Calling C/C++ Functions from Assembly Language Programs Using Mixed C/C++ and Assembly Support Macros Interface Support Macros, Defined Using Mixed C/C++ and Assembly Naming Conventions Implementing C++ Member Functions in Assembly Writing C/C++ Callable SIMD Subroutines C++ Programming Examples Using Fract Support Using Complex Support Mixed C/C++/Assembly Programming Examples Using Inline Assembly (Add) Using Macros to Manage the Stack Using Scratch Registers (Dot Product) Using Void Functions (Delay) Using the Stack for Arguments and Return (Add 5) Using Registers for Arguments and Return (Add 2) vii

8 Using Non-leaf Routines That Make Calls (RMS) Using Call Preserved Registers (Pass Array) C/C++ Compiler Glossary C/C++ RUN-TIME LIBRARY Overview C and C++ Run-Time Libraries Guide Calling Library Functions Linking Library Functions Working with Library Header Files Standard C Library Header Files Standard C Library Header File Descriptions Using the Compiler s Built-In C library Functions Abridged C++ Library Support Embedded C++ Library Header Files C++ Header Files for C Library Facilities Embedded Standard Template Library Header Files C Run-Time Library Reference abort abs acos, acosf asin, asinf atan, atanf atan2, atan2f atexit viii

9 atof atoi atol avg bsearch calloc ceil, ceilf clear_interrupt clip cos, cosf cosh, coshf div exit exp, expf fabs, fabsf floor, floorf fmod, fmodf free frexp, frexpf getenv heap_calloc heap_free heap_init heap_lookup ix

10 heap_malloc heap_realloc heap_switch interrupt isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit labs lavg lclip ldexp, ldexpf ldiv lmax lmin localeconv log, logf x

11 log10, log10f longjmp malloc max memchr memcmp memcpy memmove memset min modf, modff pow, powf qsort raise rand realloc setjmp setlocale signal sin, sinf sinh, sinhf sqrt, sqrtf srand strcat xi

12 strchr strcmp strcoll strcpy strcspn strerror strlen strncat strncmp strncpy strpbrk strrchr strspn strstr strtod strtok strtol strtoul strxfrm system tan, tanf tanh, tanhf tolower toupper xii

13 va_arg va_end va_start DSP LIBRARY FOR ADSP-2106X PROCESSORS Overview DSP Run-Time Library Guide Linking DSP Library Functions Working With Library Source Code DSP Header Files Built-In DSP Functions DSP Run-Time Library Reference a_compress a_expand autocoh autocorr biquad cabsf cexpf cfftn copysign, copysignf cot, cotf crosscoh crosscorr favg, favgf xiii

14 fclip, fclipf fir fmax, fmaxf fmin, fminf gen_bartlett gen_blackman gen_gaussian gen_hamming gen_hanning gen_harris gen_kaiser gen_rectangular gen_triangle histogram idle ifftn iir matadd matmul matscalmult matsub mean mu_compress mu_expand xiv

15 poll_flag_in rfftn rms rsqrt, rsqrtf set_flag set_semaphore timer_off timer0_off, timer1_off timer_on timer0_on, timer1_on timer_set timer0_set, timer1_set var zero_cross DSP LIBRARY FOR ADSP-2116X PROCESSORS Overview DSP Run-Time Library Guide Linking DSP Library Functions Working With Library Source Code DSP Header Files Built-In DSP Functions Pitfalls Using SIMD Mode DSP Run-Time Library Reference a_compress xv

16 a_expand autocoh autocorr cabsf cexpf cfftn copysign, copysignf cot, cotf crosscoh crosscorr cvecdot cvecsadd cvecsmlt cvecssub cvecvadd cvecvmlt cvecvsub favg, favgf fclip, fclipf fft_mag fir fmax, fmaxf fmin, fminf gen_bartlett xvi

17 gen_blackman gen_gaussian gen_hamming gen_hanning gen_harris gen_kaiser gen_rectangular gen_triangle histogram idle ifftn iir matadd matmul matscalmult matsub mean mu_compress mu_expand poll_flag_in rfftn rfft2_n rms rsqrt, rsqrtf xvii

18 INDEX set_flag set_semaphore timer_off timer_on timer_set var vecdot vecsadd vecsmlt vecssub vecvadd vecvmlt vecvsub zero_cross xviii

INDEX. filename (command file) compiler switch 2-19

INDEX. filename (command file) compiler switch 2-19 I INDEX Symbols @ filename (command file) compiler switch 2-19 µ-law companders ADSP-2106x 4-4 ADSP-2116x 5-4 compression function ADSP-2106x 4-63 ADSP-2116x 5-67 expansion function ADSP-2106x 4-64 ADSP-2116x

More information

5 DSP LIBRARY FOR ADSP-2116X PROCESSORS

5 DSP LIBRARY FOR ADSP-2116X PROCESSORS 5 DSP LIBRARY FOR ADSP-2116X PROCESSORS Figure 5-0. Table 5-0. Listing 5-0. Overview The run-time library for ADSP-2116x processors contains a collection of functions that provide services commonly required

More information

4 DSP LIBRARY FOR ADSP-2106X PROCESSORS

4 DSP LIBRARY FOR ADSP-2106X PROCESSORS 4 DSP LIBRARY FOR ADSP-2106X PROCESSORS Figure 4-0. Table 4-0. Listing 4-0. Listing 4-0. Overview The run-time library for ADSP-2106x processors contains a collection of functions that provide services

More information

Contents. Preface. Introduction. Introduction to C Programming

Contents. Preface. Introduction. Introduction to C Programming c11fptoc.fm Page vii Saturday, March 23, 2013 4:15 PM Preface xv 1 Introduction 1 1.1 1.2 1.3 1.4 1.5 Introduction The C Programming Language C Standard Library C++ and Other C-Based Languages Typical

More information

,$5(0%(''(':25.%(1&+ $16,&'(9(/230(17722/6 EMBEDDED WORKBENCH ANSI C COMPILER C-SPY FOR NATIONAL SEMICONDUCTOR CORP. S &RPSDFW5,6& 70 &5

,$5(0%(''(':25.%(1&+ $16,&'(9(/230(17722/6 EMBEDDED WORKBENCH ANSI C COMPILER C-SPY FOR NATIONAL SEMICONDUCTOR CORP. S &RPSDFW5,6& 70 &5 ,$5(0%(''(':25.%(1&+ $16,&'(9(/230(17722/6 EMBEDDED WORKBENCH Runs under Windows 95, NT and 3.11. Total integration of compiler, assembler, linker and debugger. Plug-in architecture for several IAR toolsets.

More information

Appendices E through H are PDF documents posted online at the book s Companion Website (located at

Appendices E through H are PDF documents posted online at the book s Companion Website (located at chtp7_printonlytoc.fm Page vii Monday, January 23, 2012 1:30 PM Appendices E through H are PDF documents posted online at the book s Companion Website (located at www.pearsonhighered.com/deitel). Preface

More information

Getting Started with DSPs

Getting Started with DSPs CHAPTER 29 Getting Started with DSPs Once you decide that a Digital Signal Processor is right for your application, you need a way to get started. Many manufacturers will sell you a low cost evaluation

More information

C: How to Program. Week /May/28

C: How to Program. Week /May/28 C: How to Program Week 14 2007/May/28 1 Chapter 8 - Characters and Strings Outline 8.1 Introduction 8.2 Fundamentals of Strings and Characters 8.3 Character Handling Library 8.4 String Conversion Functions

More information

Chapter 8 C Characters and Strings

Chapter 8 C Characters and Strings Chapter 8 C Characters and Strings Objectives of This Chapter To use the functions of the character handling library (). To use the string conversion functions of the general utilities library

More information

Introduction C CC. Advanced C

Introduction C CC. Advanced C Introduction C C CC Advanced C i ii Advanced C C CIntroduction CC C CC Advanced C Peter D. Hipson A Division of Prentice Hall Computer Publishing 201 W. 103rd St., Indianapolis, Indiana 46290 USA iii Advanced

More information

AVR Development Tools

AVR Development Tools Development Tools AVR Development Tools This section describes some of the development tools that are available for the 8-bit AVR family. ATMEL AVR Assembler ATMEL AVR Simulator IAR ANSI C-Compiler, Assembler,

More information

Characters and Strings

Characters and Strings Characters and Strings 60-141: Introduction to Algorithms and Programming II School of Computer Science Term: Summer 2013 Instructor: Dr. Asish Mukhopadhyay Character constants A character in single quotes,

More information

MC8051: Speichertypen und Adressräume

MC8051: Speichertypen und Adressräume MC8051: Speichertypen und Adressräume FFFF FF FF FFFF code sfr sfr16 sbit Special Function Registers 80 data/ idata idata interner Datenspeicher 7F 80 xdata Speichertyp Adresse Speicherbereiche data 00-7F

More information

Chapter 8 - Characters and Strings

Chapter 8 - Characters and Strings 1 Chapter 8 - Characters and Strings Outline 8.1 Introduction 8.2 Fundamentals of Strings and Characters 8.3 Character Handling Library 8.4 String Conversion Functions 8.5 Standard Input/Output Library

More information

Library and function of C. Dr. Donald Davendra Ph.D. (Department of ComputingLibrary Science, andfei function VSB-TU of COstrava)

Library and function of C. Dr. Donald Davendra Ph.D. (Department of ComputingLibrary Science, andfei function VSB-TU of COstrava) Library and function of C Dr. Donald Davendra Ph.D. Department of Computing Science, FEI VSB-TU Ostrava 1 / 30 Description of functions and macros and their standard libraries Macro used for

More information

CROSSWARE C8051NT ANSI C Compiler for Windows

CROSSWARE C8051NT ANSI C Compiler for Windows CROSSWARE C8051NT 7 The Crossware C8051NT is a sophisticated ANSI standard C compiler that generates code for the 8051 family of microcontrollers. It provides numerous extensions that allow access to 8051

More information

Computer Programming

Computer Programming Computer Programming Make everything as simple as possible, but not simpler. Albert Einstein T.U. Cluj-Napoca - Computer Programming - lecture 4 - M. Joldoş 1 Outline Functions Structure of a function

More information

Python. Olmo Zavala R. Python Exercises. Center of Atmospheric Sciences, UNAM. August 24, 2016

Python. Olmo Zavala R. Python Exercises. Center of Atmospheric Sciences, UNAM. August 24, 2016 Exercises Center of Atmospheric Sciences, UNAM August 24, 2016 NAND Make function that computes the NAND. It should receive two booleans and return one more boolean. logical operators A and B, A or B,

More information

Outline. Computer Programming. Structure of a function. Functions. Function prototype. Structure of a function. Functions

Outline. Computer Programming. Structure of a function. Functions. Function prototype. Structure of a function. Functions Outline Computer Programming Make everything as simple as possible, but not simpler. Albert Einstein Functions Structure of a function Function invocation Parameter passing Functions as parameters Variable

More information

Scientific Programming in C V. Strings

Scientific Programming in C V. Strings Scientific Programming in C V. Strings Susi Lehtola 1 November 2012 C strings As mentioned before, strings are handled as character arrays in C. String constants are handled as constant arrays. const char

More information

CSE2301. Functions. Functions and Compiler Directives

CSE2301. Functions. Functions and Compiler Directives Warning: These notes are not complete, it is a Skelton that will be modified/add-to in the class. If you want to us them for studying, either attend the class or get the completed notes from someone who

More information

by Pearson Education, Inc. All Rights Reserved.

by Pearson Education, Inc. All Rights Reserved. The string-handling library () provides many useful functions for manipulating string data (copying strings and concatenating strings), comparing strings, searching strings for characters and

More information

cs3157: another C lecture (mon-21-feb-2005) C pre-processor (3).

cs3157: another C lecture (mon-21-feb-2005) C pre-processor (3). cs3157: another C lecture (mon-21-feb-2005) C pre-processor (1). today: C pre-processor command-line arguments more on data types and operators: booleans in C logical and bitwise operators type conversion

More information

Review: Constants. Modules and Interfaces. Modules. Clients, Interfaces, Implementations. Client. Interface. Implementation

Review: Constants. Modules and Interfaces. Modules. Clients, Interfaces, Implementations. Client. Interface. Implementation Review: Constants Modules and s CS 217 C has several ways to define a constant Use #define #define MAX_VALUE 10000 Substitution by preprocessing (will talk about this later) Use const const double x =

More information

CS3157: Advanced Programming. Outline

CS3157: Advanced Programming. Outline CS3157: Advanced Programming Lecture #8 Feb 27 Shlomo Hershkop shlomo@cs.columbia.edu 1 Outline More c Preprocessor Bitwise operations Character handling Math/random Review for midterm Reading: k&r ch

More information

Programming in C. Part 1: Introduction

Programming in C. Part 1: Introduction Programming in C Part 1: Introduction Resources: 1. Stanford CS Education Library URL: http://cslibrary.stanford.edu/101/ 2. Programming in ANSI C, E Balaguruswamy, Tata McGraw-Hill PROGRAMMING IN C A

More information

Structured programming

Structured programming Exercises 10 Version 1.0, 13 December, 2016 Table of Contents 1. Strings...................................................................... 1 1.1. Remainders from lectures................................................

More information

Introduction to Programming Systems

Introduction to Programming Systems Introduction to Programming Systems CS 217 Thomas Funkhouser & Bob Dondero Princeton University Goals Master the art of programming Learn how to be good programmers Introduction to software engineering

More information

ADSP-2100 Family. C Runtime Library Manual

ADSP-2100 Family. C Runtime Library Manual ADSP-2100 Family C Runtime Library Manual a ADSP-2100 Family C Runtime Library Manual 1994 Analog Devices, Inc. ALL RIGHTS RESERVED PRODUCT AND DOCUMENTATION NOTICE: Analog Devices reserves the right to

More information

EM78 Series USER S GUIDE INTEGRATED DEVELOPMENT ENVIRONMENT. Microcontrollers ELAN MICROELECTRONICS CORP. Doc. Version 1.1

EM78 Series USER S GUIDE INTEGRATED DEVELOPMENT ENVIRONMENT. Microcontrollers ELAN MICROELECTRONICS CORP. Doc. Version 1.1 EM78 Series Microcontrollers INTEGRATED DEVELOPMENT ENVIRONMENT USER S GUIDE Doc. Version 1.1 (Applicable to euide Version 1.0 & later) ELAN MICROELECTRONICS CORP. May 2010 Trademark Acknowledgments IBM

More information

Release Notes for VisualDSP

Release Notes for VisualDSP Release Notes for VisualDSP++ 5.1.0 VisualDSP++ 5.1.0 Release Notes Revision 1.0 September 2013 Nomenclature VisualDSP++ is upgraded from 5.0 to 5.1.0 to reflect support for Windows 8, along with other

More information

ADSP-2100 Family Development Tools ADDS-21xx-TOOLS

ADSP-2100 Family Development Tools ADDS-21xx-TOOLS a FEATURES DEVELOPMENT SOFTWARE TOOLS SYSTEM BUILDER Defines Architecture of ADSP-21xx System Specifies Amount of RAM/ROM Memory ASSEMBLER Easy-to-Program, Algebraic Instruction Syntax Supports C Language

More information

ADSP EZ-ICE Emulator User s Guide (For Use with VisualDSP++ Release 2.0 or Higher)

ADSP EZ-ICE Emulator User s Guide (For Use with VisualDSP++ Release 2.0 or Higher) User s Guide (For Use with VisualDSP++ Release 2.0 or Higher) First Edition, Revision 1.0, October 2002 Part Number 82-000259-01 Analog Devices, Inc. Digital Signal Processing Division One Technology Way

More information

Release Notes for CrossCore Embedded Studio 2.1.0

Release Notes for CrossCore Embedded Studio 2.1.0 Release Notes for CrossCore Embedded Studio 2.1.0 2015 Analog Devices, Inc. http://www.analog.com processor.tools.support@analog.com Contents 1 Introduction 3 1.1 Supported Operating Systems 3 1.2 System

More information

The Cygnus C Math Library

The Cygnus C Math Library The Cygnus C Math Library libm 1.4 December 1995 Steve Chamberlain Roland Pesch Cygnus Support Cygnus Support sac@cygnus.com pesch@cygnus.com Copyright c 1992, 1993 Cygnus Support libm includes software

More information

Fundamentals of Programming. Lecture 11: C Characters and Strings

Fundamentals of Programming. Lecture 11: C Characters and Strings 1 Fundamentals of Programming Lecture 11: C Characters and Strings Instructor: Fatemeh Zamani f_zamani@ce.sharif.edu Sharif University of Technology Computer Engineering Department The lectures of this

More information

The Red Hat newlib C Math Library

The Red Hat newlib C Math Library The Red Hat newlib C Math Library libm 1.11.0 July 2002 Steve Chamberlain Roland Pesch Red Hat Support Jeff Johnston Red Hat Support sac@cygnus.com pesch@cygnus.com jjohnstn@redhat.com Copyright c 1992,

More information

N v 1. Type generic string interfaces honor the const contract of application code ISO/IEC JTC 1/SC 22/WG14. August 20, 2016

N v 1. Type generic string interfaces honor the const contract of application code ISO/IEC JTC 1/SC 22/WG14. August 20, 2016 Type generic string interfaces honor the const contract of application code Jens Gustedt INRIA and ICube, Université de Strasbourg, France ISO/IEC JTC 1/SC 22/WG14 August 20, 2016 N 2068 v 1 In several

More information

Index. backslash character, 19 backup, off-site, 11. abs, 72 abstraction, 63, 83, 133, 141, 174, 181 acos, 72

Index. backslash character, 19 backup, off-site, 11. abs, 72 abstraction, 63, 83, 133, 141, 174, 181 acos, 72 Index */, 7, 62 ++, 47 -lm, 71 /*, 7, 62 //, 7, 62 #define, 14, 95, 100, 108, 235 #if, 237 #ifdef, 237 #include, 7, 70, 174 FILE, 236 LINE, 236 * operator, 19, 20, 91, 93, 236 + operator, 19, 20, 236 ++

More information

The Red Hat newlib C Math Library

The Red Hat newlib C Math Library The Red Hat newlib C Math Library libm 1.17.0 December 2008 Steve Chamberlain Roland Pesch Red Hat Support Jeff Johnston Red Hat Support sac@cygnus.com pesch@cygnus.com jjohnstn@redhat.com Copyright c

More information

CS167 Programming Assignment 1: Shell

CS167 Programming Assignment 1: Shell CS167 Programming Assignment 1: Assignment Out: Sep. 5, 2007 Helpsession: Sep. 11, 2007 (8:00 pm, Motorola Room, CIT 165) Assignment Due: Sep. 17, 2007 (11:59 pm) 1 Introduction In this assignment you

More information

today cs3157-fall2002-sklar-lect05 1

today cs3157-fall2002-sklar-lect05 1 today homework #1 due on monday sep 23, 6am some miscellaneous topics: logical operators random numbers character handling functions FILE I/O strings arrays pointers cs3157-fall2002-sklar-lect05 1 logical

More information

C Libraries. Bart Childs Complementary to the text(s)

C Libraries. Bart Childs Complementary to the text(s) C Libraries Bart Childs Complementary to the text(s) 2006 C was designed to make extensive use of a number of libraries. A great reference for student purposes is appendix B of the K&R book. This list

More information

C mini reference. 5 Binary numbers 12

C mini reference. 5 Binary numbers 12 C mini reference Contents 1 Input/Output: stdio.h 2 1.1 int printf ( const char * format,... );......................... 2 1.2 int scanf ( const char * format,... );.......................... 2 1.3 char

More information

Highly Optimized Mathematical Functions for the Itanium Processor

Highly Optimized Mathematical Functions for the Itanium Processor Highly Optimized Mathematical Functions for the Itanium Processor! Speaker: Shane Story! Software Engineer! CSL Numerics Group! Corporation Copyright Copyright 2001 2001 Corporation. Agenda! Itanium Processor

More information

SWEN-250 Personal SE. Introduction to C

SWEN-250 Personal SE. Introduction to C SWEN-250 Personal SE Introduction to C A Bit of History Developed in the early to mid 70s Dennis Ritchie as a systems programming language. Adopted by Ken Thompson to write Unix on a the PDP-11. At the

More information

Built-in Types of Data

Built-in Types of Data Built-in Types of Data Types A data type is set of values and a set of operations defined on those values Python supports several built-in data types: int (for integers), float (for floating-point numbers),

More information

Strings and Library Functions

Strings and Library Functions Unit 4 String String is an array of character. Strings and Library Functions A string variable is a variable declared as array of character. The general format of declaring string is: char string_name

More information

SIMD Math Library API Reference

SIMD Math Library API Reference Software Development Kit for Multicore Acceleration Version 3.0 SIMD Math Library API Reference SC33-8335-01 Software Development Kit for Multicore Acceleration Version 3.0 SIMD Math Library API Reference

More information

RMOS3 V3.50 Reference Manual Part III RMOS3. RMOS3 real-time operating system RMOS3 V3.50 Reference Manual Part III. About this manual...

RMOS3 V3.50 Reference Manual Part III RMOS3. RMOS3 real-time operating system RMOS3 V3.50 Reference Manual Part III. About this manual... About this manual... 1 RMOS3 s 2 RMOS3 C Runtime Library 3 RMOS3 real-time operating system RMOS3 V3.50 Reference Manual Part III Programming Manual 07/2012 A5E03692355-01 Legal information Warning notice

More information

AIR FORCE SCHOOL,BAMRAULI COMPUTER SCIENCE (083) CLASS XI Split up Syllabus (Session ) Contents

AIR FORCE SCHOOL,BAMRAULI COMPUTER SCIENCE (083) CLASS XI Split up Syllabus (Session ) Contents AIR FORCE SCHOOL,BAMRAULI COMPUTER SCIENCE (083) CLASS XI Split up Syllabus (Session- 2017-18) Month July Contents UNIT 1: COMPUTER FUNDAMENTALS Evolution of computers; Basics of computer and its operation;

More information

Muntaser Abulafi Yacoub Sabatin Omar Qaraeen. C Data Types

Muntaser Abulafi Yacoub Sabatin Omar Qaraeen. C Data Types Programming Fundamentals for Engineers 0702113 5. Basic Data Types Muntaser Abulafi Yacoub Sabatin Omar Qaraeen 1 2 C Data Types Variable definition C has a concept of 'data types' which are used to define

More information

1 INTRODUCTION. Figure 1-0. Table 1-0. Listing 1-0.

1 INTRODUCTION. Figure 1-0. Table 1-0. Listing 1-0. 1 INTRODUCTION Figure 1-0. Table 1-0. Listing 1-0. The C/C++ compiler is part of Analog Devices development software. The software aids your DSP project development efforts by: Processing C and C++ source

More information

Appendix A. ANSI Standard Header PART

Appendix A. ANSI Standard Header PART ANSI Standard Header Files 409 PART VI Appendix A ANSI Standard Header Files As you have learned in the past 24 hours, the C standard library comes with a set of include files called header files. These

More information

INDEX. Figure I-0. Listing I-0. Table I-0. Symbols.DIRECTIVE (see Assembler directives)? preprocessor operator 3-34

INDEX. Figure I-0. Listing I-0. Table I-0. Symbols.DIRECTIVE (see Assembler directives)? preprocessor operator 3-34 I INDEX Figure I-0. Listing I-0. Table I-0. Symbols.DIRECTIVE (see Assembler directives)? preprocessor operator 3-34 Numerics Assembler command-line switch -21 2-21 A Address alignment 2-39 Address of

More information

Axivion Bauhaus Suite Technical Factsheet MISRA

Axivion Bauhaus Suite Technical Factsheet MISRA MISRA Contents 1. C... 2 1. Misra C 2004... 2 2. Misra C 2012 (including Amendment 1). 10 3. Misra C 2012 Directives... 18 2. C++... 19 4. Misra C++ 2008... 19 1 / 31 1. C 1. Misra C 2004 MISRA Rule Severity

More information

Review Topics. Final Exam Review Slides

Review Topics. Final Exam Review Slides Review Topics Final Exam Review Slides!! Transistors and Gates! Combinational Logic! LC-3 Programming!! Original slides from Gregory Byrd, North Carolina State University Modified slides by Chris Wilcox,

More information

Main Program. C Programming Notes. #include <stdio.h> main() { printf( Hello ); } Comments: /* comment */ //comment. Dr. Karne Towson University

Main Program. C Programming Notes. #include <stdio.h> main() { printf( Hello ); } Comments: /* comment */ //comment. Dr. Karne Towson University C Programming Notes Dr. Karne Towson University Reference for C http://www.cplusplus.com/reference/ Main Program #include main() printf( Hello ); Comments: /* comment */ //comment 1 Data Types

More information

C: Arrays, and strings. Department of Computer Science College of Engineering Boise State University. September 11, /16

C: Arrays, and strings. Department of Computer Science College of Engineering Boise State University. September 11, /16 Department of Computer Science College of Engineering Boise State University September 11, 2017 1/16 1-dimensional Arrays Arrays can be statically declared in C, such as: int A [100]; The space for this

More information

Practical C++ Programming

Practical C++ Programming SECOND EDITION Practical C++ Programming Steve Oualline O'REILLY' Beijing Cambridge Farnham Koln Paris Sebastopol Taipei Tokyo Preface xv Part I. The Basics 1. What Is C++? 3 A Brief History of C++ 3 C++

More information

Introduction to Programming and 4Algorithms Abstract Types. Uwe R. Zimmer - The Australian National University

Introduction to Programming and 4Algorithms Abstract Types. Uwe R. Zimmer - The Australian National University Introduction to Programming and 4Algorithms 2015 Uwe R. Zimmer - The Australian National University [ Thompson2011 ] Thompson, Simon Haskell - The craft of functional programming Addison Wesley, third

More information

Converting a Lowercase Letter Character to Uppercase (Or Vice Versa)

Converting a Lowercase Letter Character to Uppercase (Or Vice Versa) Looping Forward Through the Characters of a C String A lot of C string algorithms require looping forward through all of the characters of the string. We can use a for loop to do that. The first character

More information

C Programs: Simple Statements and Expressions

C Programs: Simple Statements and Expressions .. Cal Poly CPE 101: Fundamentals of Computer Science I Alexander Dekhtyar.. C Programs: Simple Statements and Expressions C Program Structure A C program that consists of only one function has the following

More information

CUDA MATH API. v6.5 August API Reference Manual

CUDA MATH API. v6.5 August API Reference Manual CUDA MATH API v65 August 2014 API Reference Manual TABLE OF CONTENTS Chapter 1 1 11 Mathematical Functions 1 12 Single Precision Mathematical Functions 1 acosf 2 acoshf 2 asinf 2 asinhf3 atan2f 3 atanf

More information

Mentor Graphics Predefined Packages

Mentor Graphics Predefined Packages Mentor Graphics Predefined Packages Mentor Graphics has created packages that define various types and subprograms that make it possible to write and simulate a VHDL model within the Mentor Graphics environment.

More information

Characters, c-strings, and the string Class. CS 1: Problem Solving & Program Design Using C++

Characters, c-strings, and the string Class. CS 1: Problem Solving & Program Design Using C++ Characters, c-strings, and the string Class CS 1: Problem Solving & Program Design Using C++ Objectives Perform character checks and conversions Knock down the C-string fundamentals Point at pointers and

More information

Split up Syllabus (Session )

Split up Syllabus (Session ) Split up Syllabus (Session- -17) COMPUTER SCIENCE (083) CLASS XI Unit No. Unit Name Marks 1 COMPUTER FUNDAMENTALS 10 2 PROGRAMMING METHODOLOGY 12 3 INTRODUCTION TO C++ 14 4 PROGRAMMING IN C++ 34 Total

More information

DSP Platforms Lab (AD-SHARC) Session 05

DSP Platforms Lab (AD-SHARC) Session 05 University of Miami - Frost School of Music DSP Platforms Lab (AD-SHARC) Session 05 Description This session will be dedicated to give an introduction to the hardware architecture and assembly programming

More information

C: Pointers, Arrays, and strings. Department of Computer Science College of Engineering Boise State University. August 25, /36

C: Pointers, Arrays, and strings. Department of Computer Science College of Engineering Boise State University. August 25, /36 Department of Computer Science College of Engineering Boise State University August 25, 2017 1/36 Pointers and Arrays A pointer is a variable that stores the address of another variable. Pointers are similar

More information

Basic C Programming. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island

Basic C Programming. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island Basic C Programming Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island Announcements Exam 1 (20%): Feb. 27 (Tuesday) Tentative Proposal Deadline:

More information

Engineer To Engineer Note

Engineer To Engineer Note Engineer To Engineer Note EE-134 Phone: (800) ANALOG-D, FAX: (781) 461-3010, EMAIL: dsp.support@analog.com, FTP: ftp.analog.com, WEB: www.analog.com/dsp Copyright 2001, Analog Devices, Inc. All rights

More information

Chapter 8: Character & String. In this chapter, you ll learn about;

Chapter 8: Character & String. In this chapter, you ll learn about; Chapter 8: Character & String Principles of Programming In this chapter, you ll learn about; Fundamentals of Strings and Characters The difference between an integer digit and a character digit Character

More information

Amsterdam Compiler Kit-ANSI C compiler compliance statements

Amsterdam Compiler Kit-ANSI C compiler compliance statements Amsterdam Compiler Kit-ANSI C compiler compliance statements Hans van Eck Dept. of Mathematics and Computer Science Vrije Universiteit Amsterdam, The Netherlands This document specifies the implementation-defined

More information

ECET 264 C Programming Language with Applications

ECET 264 C Programming Language with Applications ECET 264 C Programming Language with Applications Lecture 10 C Standard Library Functions Paul I. Lin Professor of Electrical & Computer Engineering Technology http://www.etcs.ipfw.edu/~lin Lecture 10

More information

CS201 - Introduction to Programming Glossary By

CS201 - Introduction to Programming Glossary By CS201 - Introduction to Programming Glossary By #include : The #include directive instructs the preprocessor to read and include a file into a source code file. The file name is typically enclosed with

More information

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS Contents Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS 1.1. INTRODUCTION TO COMPUTERS... 1 1.2. HISTORY OF C & C++... 3 1.3. DESIGN, DEVELOPMENT AND EXECUTION OF A PROGRAM... 3 1.4 TESTING OF PROGRAMS...

More information

Help Copyright 2011 Robert Bosch Engineering and Business Solutions Limited

Help Copyright 2011 Robert Bosch Engineering and Business Solutions Limited Help Copyright 2011 Robert Bosch Engineering and Business Solutions Limited 2 BUSMASTER TOC Contents Introduction... 7 What is new?...9 General... 12 Configuration settings in a file... 12 Trace Window...

More information

SOME ASSEMBLY REQUIRED

SOME ASSEMBLY REQUIRED SOME ASSEMBLY REQUIRED Assembly Language Programming with the AVR Microcontroller TIMOTHY S. MARGUSH CRC Press Taylor & Francis Group CRC Press is an imprint of the Taylor & Francis Croup an Informa business

More information

PROGRAM HOW TO. Harvey Deitel. Deuel. Paul Deitel. Deitel &Associates, Inc. SEVENTH EDITION. InternationalEdition contributions by PEARSON

PROGRAM HOW TO. Harvey Deitel. Deuel. Paul Deitel. Deitel &Associates, Inc. SEVENTH EDITION. InternationalEdition contributions by PEARSON HOW TO PROGRAM SEVENTH EDITION Paul Deitel Deitel &Associates, Inc. Harvey Deitel Deitel &Associates, Inc. InternationalEdition contributions by MohitP. Tahiliani National Institute oftechnology Kamataka,

More information

CHAPTER 1 Introduction to Computers and Programming CHAPTER 2 Introduction to C++ ( Hexadecimal 0xF4 and Octal literals 031) cout Object

CHAPTER 1 Introduction to Computers and Programming CHAPTER 2 Introduction to C++ ( Hexadecimal 0xF4 and Octal literals 031) cout Object CHAPTER 1 Introduction to Computers and Programming 1 1.1 Why Program? 1 1.2 Computer Systems: Hardware and Software 2 1.3 Programs and Programming Languages 8 1.4 What is a Program Made of? 14 1.5 Input,

More information

Programming GPUs with OpenACC Part 3: Advanced Topics

Programming GPUs with OpenACC Part 3: Advanced Topics Programming GPUs with OpenACC Part 3: Advanced Topics Michael Wolfe Michael.Wolfe@pgroup.com http://www.pgroup.com May 2012 Questions Abstracted x64+fermi Accelerator Architecture Abstract Target Basic

More information

System Design and Programming II

System Design and Programming II System Design and Programming II CSCI 194 Section 01 CRN: 10968 Fall 2017 David L. Sylvester, Sr., Assistant Professor Chapter 10 Characters, Strings, and the string Class Character Testing The C++ library

More information

FF-900 FS 6.0 Fieldbus Specification Device Description Language

FF-900 FS 6.0 Fieldbus Specification Device Description Language FF-900 FS 6.0 Fieldbus Specification Device Description Language Table of Contents 1 Introduction... 1 1.1 Scope... 1 1.2 References... 1 1.3 Overview... 1 1.4 Architecture... 2 1.5 DDL Model... 3 1.5.1

More information

CSCI0330 Intro Computer Systems Doeppner. Project C-Shell. Due: November 1, 2017 at 11:59pm

CSCI0330 Intro Computer Systems Doeppner. Project C-Shell. Due: November 1, 2017 at 11:59pm CSCI0330 Intro Computer Systems Doeppner Project C-Shell Due: November 1, 2017 at 11:59pm IMPORTANT: The TAs will start grading Shell 1 the day after it is due. Therefore, if you ve handed in and might

More information

Important Questions for Viva CPU

Important Questions for Viva CPU Important Questions for Viva CPU 1. List various components of a computer system. i. Input Unit ii. Output Unit iii. Central processing unit (Control Unit + Arithmetic and Logical Unit) iv. Storage Unit

More information

CS201- Introduction to Programming Current Quizzes

CS201- Introduction to Programming Current Quizzes CS201- Introduction to Programming Current Quizzes Q.1 char name [] = Hello World ; In the above statement, a memory of characters will be allocated 13 11 12 (Ans) Q.2 A function is a block of statements

More information

2 3. Syllabus Time Event 9:00{10:00 morning lecture 10:00{10:30 morning break 10:30{12:30 morning practical session 12:30{1:30 lunch break 1:30{2:00 a

2 3. Syllabus Time Event 9:00{10:00 morning lecture 10:00{10:30 morning break 10:30{12:30 morning practical session 12:30{1:30 lunch break 1:30{2:00 a 1 Syllabus for the Advanced 3 Day Fortran 90 Course AC Marshall cuniversity of Liverpool, 1997 Abstract The course is scheduled for 3 days. The timetable allows for two sessions a day each with a one hour

More information

Short Notes of CS201

Short Notes of CS201 #includes: Short Notes of CS201 The #include directive instructs the preprocessor to read and include a file into a source code file. The file name is typically enclosed with < and > if the file is a system

More information

Chapter 10 Characters, Strings, and the string class

Chapter 10 Characters, Strings, and the string class Standard Version of Starting Out with C++, 4th Edition Chapter 10 Characters, Strings, and the string class Copyright 2003 Scott/Jones Publishing Topics 10.1 Character Testing 10.2 Character Case Conversion

More information

Cheat Sheets of the C standard library

Cheat Sheets of the C standard library Cheat Sheets of the C standard library Version 1.06 Last updated: 2012-11-28 About This document is a set of quick reference sheets (or cheat sheets ) of the ANSI C standard library. It contains function

More information

The Red Hat newlib C Math Library

The Red Hat newlib C Math Library The Red Hat newlib C Math Library libm 2.1.0 December 2013 Steve Chamberlain Roland Pesch Red Hat Support Jeff Johnston Red Hat Support sac@cygnus.com pesch@cygnus.com jjohnstn@redhat.com Copyright c 1992,

More information

CSCE 110 PROGRAMMING FUNDAMENTALS

CSCE 110 PROGRAMMING FUNDAMENTALS CSCE 110 PROGRAMMING FUNDAMENTALS WITH C++ Prof. Amr Goneid AUC Part 2. Overview of C++ Prof. Amr Goneid, AUC 1 Overview of C++ Prof. Amr Goneid, AUC 2 Overview of C++ Historical C++ Basics Some Library

More information

1 Pointer Concepts. 1.1 Pointer Examples

1 Pointer Concepts. 1.1 Pointer Examples 1 1 Pointer Concepts What are pointers? How are they used? Point to a memory location. Call by reference is based on pointers. Operators: & Address operator * Dereferencing operator Machine/compiler dependencies

More information

CSCI0330 Intro Computer Systems Doeppner. Project C-Shell. Due: October 31, 2018 at 11:59pm. 1 Introduction 2

CSCI0330 Intro Computer Systems Doeppner. Project C-Shell. Due: October 31, 2018 at 11:59pm. 1 Introduction 2 CSCI0330 Intro Computer Systems Doeppner Project C-Shell Due: October 31, 2018 at 11:59pm 1 Introduction 2 2 Assignment 2 2.1 Makefile 3 2.2 Files, File Descriptors, Terminal I/O 5 2.3 Executing a Program

More information

Excel Programming with VBA (Macro Programming) 24 hours Getting Started

Excel Programming with VBA (Macro Programming) 24 hours Getting Started Excel Programming with VBA (Macro Programming) 24 hours Getting Started Introducing Visual Basic for Applications Displaying the Developer Tab in the Ribbon Recording a Macro Saving a Macro-Enabled Workbook

More information

Basic types and definitions. Chapter 3 of Thompson

Basic types and definitions. Chapter 3 of Thompson Basic types and definitions Chapter 3 of Thompson Booleans [named after logician George Boole] Boolean values True and False are the result of tests are two numbers equal is one smaller than the other

More information

CODE TIME TECHNOLOGIES. Abassi RTOS MISRA-C:2004. Compliance Report

CODE TIME TECHNOLOGIES. Abassi RTOS MISRA-C:2004. Compliance Report CODE TIME TECHNOLOGIES Abassi RTOS MISRA-C:2004 Compliance Report Copyright Information This document is copyright Code Time Technologies Inc. 2012. All rights reserved. No part of this document may be

More information

W4.5 Getting Started Guide

W4.5 Getting Started Guide W4.5 Getting Started Guide Revision 2.0, April 2006 Part Number 82-000420-01 Analog Devices, Inc. One Technology Way Norwood, Mass. 02062-9106 a Copyright Information 2006 Analog Devices, Inc., ALL RIGHTS

More information

tag 220 tan[f l] struct { int i; double d; } sa, sb; struct { int i; double d; } s1, s2;

tag 220 tan[f l] struct { int i; double d; } sa, sb; struct { int i; double d; } s1, s2; tag 220 T tag The identifier that may optionally follow the keyword struct, union, or enum in a structure, union, or enumerated type definition, respectively. The tag is used later to refer to that particular

More information

MJPEG AVI Library Developer's Guide

MJPEG AVI Library Developer's Guide DEVIM1-002-D October 2005 Analog Devices Inc. www.analog.com Table of Contents 1. Introduction...6 1.1. Scope...6 1.2. Target platform...6 1.3. Organisation of this Guide...6 1.4. Version Information...6

More information