The Tornado 2.0 project facility is correctly preconfigured for building WRS BSPs. However, if you choose not to use the project facility or if you need to customize your build, you may need the information in the following sections. This includes a configuration constant, an environment variable, and compiler options that together specify the information the GNU toolkit requires to compile correctly for MC680x0 targets.
Setting the preprocessor variable CPU ensures that VxWorks and your applications build with the appropriate architecture-specific features enabled. Define this variable to one of the following values, to match the processor you are using:
The following is an example of a compiler command line for MC680x0 cross-development. The file to be compiled in this example has a base name of applic.
% cc68k -DCPU=MC68040 -I $WIND_BASE/target/h -fno-builtin \ -O -nostdinc -c applic.language_id
The options shown in the example have the following meanings:1
|
CAUTION: Do not use -msoft-float on the MC68040 or MC68060. However, do use this flag for floating-point support on the MC68LC040. See Floating-Point Support.
|
||||||||||||||||||
1: For more information on these and other compiler options, see the GNU ToolKit User's Guide. WRS supports compiler options used in building WRS software; a list of these options is included in the Guide. Other options are not supported, although they are available with the tools as shipped.