Archiver Guide
Writing Archive Routines: Creating Entry Points
An archive routine (or function) in code can be accessed by other pro-
grams. Each routine must have a globally visible start label ( entry point ).
Code that accesses that routine must declare the entry point's name as an
external variable in the calling code.
To create entry points:
1. Declare the start label of each routine as a global symbol with the
assembler's
The following code fragment has two entry points,
2. Assemble and archive the code containing the routines. Use either
of the following methods.
•
Direct VisualDSP++ to produce a library (see
Library From VisualDSP++" on page
project, the object code containing the entry points is packaged
in
<projectname>.DLB
for example, to incorporate it in another project.
•
When creating executable or unlinked object files from Visu-
alDSP++, archive them afterwards from the
line.
6-4
directive. This defines the entry point.
.GLOBAL
...
.global dIriir;
.section data1;
.byte2 FAE = 0x1234,0x4321;
.section program;
.global FAE;
dIriir: R0=N-2;
P2 = FAE;
VisualDSP++ 3.5 Linker and Utilities Manual
6-3). When you build the
. You can extract an object file (
and
dIriir
FAE
"Creating a
),
.DOJ
command
elfar
for 16-Bit Processors
.
Need help?
Do you have a question about the VisualDSP++ 3.5 and is the answer not in the manual?
Questions and answers