Download SOFTWARE USER`S GUIDE FOR THE RAD6000 PROCESSOR

Transcript
6 Pulling It All Together - How to Build for Your Target
20
/*
*/
/*
KERNEL SOFTWARE CONFIGURATION
*/
/*
*/
/**********************************************************************/
Nothing below this point should be configured.
#endif
/* INCconfigAllh */
Figure 2 Outline of file “configAll.h”
6.2.2 The Ada Runtime Environment
Ada programs require the use of an Ada Runtime Environment. AdaMULTI allows software developers to
choose one of two methods for providing the services of the Ada Runtime Environment to their application
programs. The first method is to link those services that are used by a given Ada program directly with that
program. The second method is to link the Ada Runtime Environment with the VxWorks operating system
so that each Ada program need not contain its own copy of these services.
There is a tradeoff in deciding which of these methods is best for you. Linking the services with your
application programs saves memory space if your system comprises only one or a few Ada programs each
using only a few of the Ada Runtime Environment services. However, if there are many Ada programs or
just a few Ada programs each requiring many runtime services, linking the Ada Runtime Environment with
VxWorks will reduce memory requirements. You will need to decide for yourself which is the best option
and then perform the instructions in one of the next two sections.
6.2.2.1 Linking the Ada Runtime Environment with VxWorks
To build the Ada Runtime Environment into VxWorks, you need to add the Green Hills Ada libraries to the
list of object files to be linked with VxWorks. To do this, use your favorite editor to edit the file
“Makefile.RSCgreen” in your build directory. Find the lines that set the LIBS variable and add the following
five lines:
$(ADABASE)/adalib/libs.o
$(ADABASE)/adalib/lowrt_wr.a
$(ADABASE)/adalib/lowtask_wr.a
$(ADABASE)/adalib/predef_wr.a
$(ADABASE)/adalib/util_wr.a
\
\
\
\
Make sure that all lines except for the last one end with a line continuation character (”\”). Once you have
done this, save the file and exit the editor.
Now go to the Ada library under the ADABASE directory and copy the following files:
cd
cp
cp
cp
cp
$ADABASE/adalib
lowrt_blank.a lowrt.a
lowtask_blank.a lowtask.a
predef_blank.a predef.a
util_blank.a util.a
LOCKHEED M ARTIN FEDERAL SYSTEMS