02.03.2014 Views

vxworks programmer's guide.pdf - DAQ Plone Site

vxworks programmer's guide.pdf - DAQ Plone Site

vxworks programmer's guide.pdf - DAQ Plone Site

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

VxWorks 5.4<br />

Programmer’s Guide<br />

HP-UX<br />

Windows<br />

The following is an example of a compiler command line for VxSim development.<br />

The file to be compiled in this example has a base name of applic.<br />

% cchppa -g -ansi -nostdinc -DRW_MULTI_THREAD -D_REENTRANT -O2 \<br />

-fvolitile -fno-builtin -I. -I/wind/target/h -DCUP_SIMHPPA \<br />

-c applic.c<br />

The following is an example of a compiler command line for VxSim development.<br />

The file to be compiled in this example has a base name of applic.<br />

Option Definitions<br />

% ccsimpc -DCPU=SIMNT -mpentium -ansi -nostdinc -g -nostdlib \<br />

-fno-builtin -fno-defer-pop -Wall -DRW_MULTI_THREAD \<br />

-D_REENTRANT -I. -I C:/Tornado/target/h -c applic.c<br />

The options shown in the example have the following meanings: 2<br />

ccsimso<br />

Required; use ccsimso for the Solaris simulator, cchppa for the HP-UX<br />

simulator, and ccsimpc for the Windows simulator.<br />

-DCPU=SIMNT<br />

Required; defines the CPU type. See the table on page Defining the CPU Type,<br />

p.535.<br />

-mpentium<br />

Optional for Windows only; specifies Pentium optimizations.<br />

-ansi<br />

Recommended; supports all ANSI standard C programs.<br />

-nostdinc<br />

Required; searches only the directories specified with the -I flag (see below)<br />

and the current directory for header files. Does not search host-system include<br />

files.<br />

-O2<br />

Optional; implements optimization. Not recommended for the PC simulator.<br />

2. For more information on these and other compiler options, see the GNU ToolKit User’s Guide.<br />

WRS supports compiler options used in building WRS software; see the Guide for a list.<br />

Other options are not supported, although they are available with the tools as shipped.<br />

536

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

Saved successfully!

Ooh no, something went wrong!