Compiling a neuron c program – Echelon Neuron Field Compiler User Manual
Page 16

10
Using the Neuron Field Compiler
Compiling a Neuron C Program
To compile Neuron C application code, the Neuron Field Compiler includes
several components. Figure 2 shows the basic compilation flow for how your
Neuron C generator tool works with the Neuron Field Compiler.
Figure 2. Basic Compilation Flow
As shown in the figure:
1. Your Neuron C generator tool calls the Neuron Field Compiler, passing in
generated Neuron C code and the hardware template file for the target
device.
2. The Neuron Field Compiler compiles the Neuron C code and provides
compilation feedback, such as a success or error code.
3. The Neuron Field Compiler generates listing files and compiled image
files.
4. Your Neuron C generator tool uses the generated listing and image files
(such as an .NME or .NDL file) to load into the Smart Transceiver or
Neuron Chip for a L
ON
W
ORKS
device.
The Neuron Field Compiler builds application image files as release images with
default optimization preferences (you can control compilation optimization with
compiler directives within the Neuron C source). Images are built as
unconfigured and not authenticated. If your devices require shipment with
configured and authenticated images, you must specify the related keys and
settings during device production.
Figure 3 on page 11 shows the compilation flow within the Neuron Field
Compiler to compile, assemble, and link a Neuron C source file.