02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Tornado</strong> 2.0<br />

User’s Guide<br />

about components that may not be required for your application. To automatically<br />

scale VxWorks, select Auto Scale from the context menu in the VxWorks view of the<br />

workspace window to display the Auto Scale dialog box, and click OK.<br />

NOTE: The auto scale feature detects only statically calculable dependencies<br />

between the application code and VxWorks. Some components may be needed<br />

even if they are not called by your application. This is especially true for servers<br />

such as WDB, NFS, and so on.<br />

4.4.2 Adding Application Initialization Routines<br />

When VxWorks boots, it initializes operating system components (as needed), and<br />

then passes control to the user’s application for initialization. To add application<br />

initialization calls to VxWorks, double-click on userAppInit.c to open the file for<br />

editing, and add the call(s) to usrAppInit( ). Figure 4-33, for example, illustrates the<br />

addition of a call to runItAll( ), the main routine in the application file<br />

helloWorld.c.<br />

4.5 Working With Build Specifications<br />

The project facility allows you to create, modify, and select specifications for any<br />

number of builds. A default build specification is defined when you create your<br />

project. While a BSP is usually designed for one CPU, you can create build<br />

specifications for different image types and optimization levels, specifications for<br />

builds that include debugging information and builds that don’t, and so on.<br />

4.5.1 Changing a Build Specification<br />

Each build specification consists of a set of options that define the VxWorks image<br />

type (for VxWorks and bootable application projects), makefile rules, macros, as<br />

well as compiler, assembler, and linker options.<br />

128

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!