It may not be possible to call inline functions from an assembler program
as the compiler may have removed the definition of the function if all calls
to the function are inlined. Global static variables cannot be referred to in
assembly routines as their names are encrypted. For more information on
the naming conventions, see
on page
1-169.
You can use
3.5 Linker and Utilities Manual for 16-Bit Processors, to build
library archive files of your own functions.
Using the Compiler's Built-In C Library Functions
The C/C++ compiler's built-in functions are a set of functions that the
compiler immediately recognizes and replaces with inline assembly code
instead of a function call. Typically, in-line assembly code is faster than an
library routine, and it does not incur the calling overhead.
To use built-in functions, your source must include the required standard
include file. For the abs functions this would require
included. There are built-in functions used to define some ANSI C
,
math.h
string.h
tions to support various ANALOG extensions to the ANSI standard
defined in the include file
have a library alternate definition. Therefore, the failure to use the
required include files can result in your program build failing to link.
If you want to use the C run-time library functions of the same name,
compile with the
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
"C/C++ and Assembly Language Interface"
(the archiver), described in the VisualDSP++
elfar
and
functions. There are also built-in func-
stdlib.h
math_builtins.h
compiler switch
-no-builtin
C/C++ Run-Time Library
stdlib.h
. Not all built-in functions
(on page
1-34).
to be
3-5
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers