![Intel Intel 80188EB User Manual Download Page 21](http://html1.mh-extra.com/html/intel/intel-80188eb/intel-80188eb_user-manual_2071788021.webp)
Chapter 4
Interfacing to Your Round Card
80188EB-Based Fieldbus Round Card User Manual
4-6
©
National Instruments Corporation
National Instruments recommends that you use Borland C version 4.5 for
maximum compatibility with our library file.
The first step in the final stage is compilation. The following files must
be successfully compiled to
.obj
format:
•
The
.c
file generated by the Device Code Generator.
•
The
.c
file generated by the Configuration Generator.
•
Your own
.c
file that contains your
userStart
function and your
callbacks.
You should compile the files to
.obj
format, using compiler options to
meet the following conditions:
•
You must use the Medium memory model (near data, far code). For
the Borland C 4.5 compiler, this option is
-mm
.
•
You must use the default structure alignment, which is a 2-byte
structure alignment for Borland C 4.5.
•
You must allow single-byte enumeration where possible. For the
Borland C 4.5 compiler, this option is
-b-
.
After you have compiled the files, you must link them with the National
Instruments Round Card library,
nistack.lib
. This file contains the
communications stack and Function Block Shell. You must specify the
following linker options when linking to
nistack.lib
:
•
Case-sensitive public and external symbols. For the Borland C 4.5
linker, this option is
-c
.
•
Ignore default libraries. For the Borland C 4.5 linker, this option
is
-n
.
•
Set the segment alignment to 16 bytes. For the Borland C 4.5 linker,
this option is
-A=16
.
When you have successfully completed linking your application, you
are ready to locate it in the physical address space of the Round Card.
To complete this step, you need a locator utility such as Paradigm
Systems’
locate
.
Note:
The locator file must place the Data Segment so that it covers at least the
first 32 bytes of the Frontier-1 memory space. If the Data Segment is not
placed correctly, the Round Card will be unable to communicate on the
Fieldbus.