![Texas Instruments TMS320C80 Скачать руководство пользователя страница 57](http://html.mh-extra.com/html/texas-instruments/tms320c80/tms320c80_user-manual_1094755057.webp)
Prototyping Code Using Linker Command Files
3-17
Prototyping ’C82 Code on the ’C80
Example 3–8.Sample PP C Program With an Assembly Language Function
/********************************************************
* ex_asm.c This example C code calculates the dot
* product of vectors A and B.
*
* The code uses an assembly language function
* to calculate the dot product. The assembly
* language code has the filename c80ex.p.
********************************************************/
#include <mvp.h>
/* allocate space for A in a named section .asect */
#pragma DATA_SECTION(A,”.a_sect”)
/* allocate space for B in a named section .bsect */
#pragma DATA_SECTION(B,”.b_sect”)
/* define a the buffer size for A and B */
#define BUF_SIZE 1536
short A[BUF_SIZE];
short B[BUF_SIZE];
extern long dot_product(short *, short *, int);
main()
{
long dot_prod;
dot_prod = dot_product(A,B,BUF_SIZE);
}
Содержание TMS320C80
Страница 1: ...TMS320C80 to TMS320C82 Software Compatibility User s Guide 1995 Digital Signal Processing Products ...
Страница 2: ...SPRU154 Printed in U S A November 1995 M418017 9741 revision ...
Страница 8: ...vi TMS320C80 to TMS320C82 Software Compatibility User s Guide ...
Страница 16: ...xiv TMS320C80 to TMS320C82 Software Compatibility User s Guide ...
Страница 30: ...1 14 TMS320C80 to TMS320C82 Software Compatibility User s Guide ...
Страница 40: ...2 10 TMS320C80 to TMS320C82 Software Compatibility User s Guide ...
Страница 64: ...A 6 TMS320C80 to TMS320C82 Software Compatibility User s Guide ...