Chapter 3 Ada Language Reference
AutoCode Reference 3-2 ni.com
Supplied Templates

ada_rt.tpl Template

The ada_rt.tpl template is the default when generating Ada code. This
template uses Ada tasks to implement the scheduling mechanism for the
model. This template supports fixed-point arithmetic.

ada_sim.tpl Template

The ada_sim.tpl template does not use Ada tasks to implement a
scheduler. The subsystems and procedures of a model execute as fast as
possible. This template is similar in design to the c_sim.tpl for C code
generation. The execution results of a model generated using this template
should allow for easier comparison to SystemBuild Simulator results. Also,
the time to execute a model is significantly faster than one based on the
ada_rt.tpl.

ada_fxpt_sys.tpl Template

The ada_fxpt_sys.tpl template is included in the ada_sim.tpl and
ada_rt.tpl templates. This template contains segments that generate the
operator instantiation package. The segments have been modularized to
reduce the impact of fixed-point support in the ada_sim and ada_rt
templates. This template uses the system-level tokens to generate the
operator instantiations.

ada_fxpt_sub.tpl Template

The ada_fxpt_sub.tpl template file can be included instead of the
ada_fxpt_sys.tpl in the ada_sim.tpl and ada_rt.tpl. This
template uses the subsystem/procedure-level tokens to generate the
instantiations. Each subsystem and procedure has a different package and
source file generated.
Table 3-1. Identified Ada Run-Time Versions of the Stand-Alone Library
Platform Stand-Alone Library
Solaris, UNIX Verd i x
HP-UX/DOS Alsys
Windows 2000/NT/9x/DOS ActivAda