Echelon Neuron Field Compiler User Manual

Page 20

Advertising
background image

14

Using the Neuron Field Compiler

Command Switch

Description

Long Form

Short

Form

--library

-l

Specify a library (.lib file) to link with the application.

--mkscript

Generate a command script in a specified location.

--nodefaults

Disable processing of default command files.

--pid

-p

Use the specified program ID (in compact ASCII format

or in colon-separated format).

--silent

Suppress banner message display.

--target

-t

Specify the name of the folder that contains the

generated image files. This command switch also

defines the target name within the device template

(.NbDt file).

--warning

Display the specified message as a warning (used with

--mkscript).

--which

Display path and version information about the

specified service.

Notes:

For the --define switch, the preprocessor symbols _FIELD_COMPILER

and _NEURONC are already defined automatically, and do not need to

be defined using this command switch.

For the --include switch, specify a path for application-specific include

files (specified as #include “myFile.h”). The default search-path for

application-specific include files automatically includes the location of the

main Neuron C source file. This command switch has no effect on

system-specific include files (specified as #include <stdlib.h>).

For the --library switch, you can use the #pragma library directive

within your Neuron C source code, rather than this command switch, to

specify additional libraries. The #pragma library directive provides

support for location-independent library specifications and promotes self-

documenting Neuron C source code.

For the --target switch, you can specify the target (“Field Compiler” by

default). The target defines the name of the folder that contains the

generated image files (relative to the location of the main Neuron C

source file), and is used within the device template (.NbDt) file.

When the Neuron Field Compiler prepares the build, it automatically creates

NodeBuilder device templates, if one does not already exist. If it finds an

existing device template, the Neuron Field Compiler modifies the existing

template, as necessary.

Advertising