Chapter Contents |
Previous |
Next |
Using the SAS/C Cross-Platform Compiler and C++ Development System |
Configuring Compile and Prelink Options |
The following example
uses a project named
ftoc
. Use the following procedure
to configure the compile and prelink options for the
ftoc
project in Microsoft Visual C++:
/ML
.
The SAS/C and C Cross-Platform Compiler ignores the
/ML
option. Also, the Microsoft Visual C++ compiler options in
Recognized Microsoft Visual C++ Compiler Options are interpreted
as valid SAS/C Cross-Platform Compiler options.
In the Project Options field,
you can add any of the SAS/C and C++ Cross-Platform Compiler options that
are listed in the compiler options list in the SAS/C Cross-Platform
Compiler and C++ Development System: Usage and Reference. For example,
to specify verbose commands, automatic instantiation of class templates, run-time
type identification, and re-entrant code generation, add the
-v
,
-Kautoinst
,
-Krtti
, and
-Krent
options for
sascc370
.
Delete all the project options under the Project Settings
Link tab except for
/incremental:no
,
/pdb:"/ftoc.pdb"
, and
/machine:IX86
. The
sascc370
driver ignores these three options. Specify the name of the prelinked
output file in the
Output file name
field. Add any
sascc370
driver options for prelinking, such as
-v
,
to the Project Options field. The Project Options field should appear as
/incremental:no /pdb:"/ftoc.pdb" /machine:IX86
/out:"ftoc" -v
.
Adding and Deleting Compiler and Project Options |
You
can use the Project Options window to add any SAS/C and C++ Cross-Platform
Compiler options. Similarly, you can use the Project Settings Link tab to
delete all the Project Options except
/incremental:no/pdb:"/ftoc.pdb"/machine:IX86
. These options are enforced by the Microsoft Visual
C++ IDE, but they are ignored by the SAS/C and C++ Cross-Platform Compiler.
sascc370
options for the compiler that are to be allocated to the selected
source file.
Note:
These driver options are not defined
by the Microsoft Visual C++ IDE, and are applicable only to
sascc370
. A
/U
will prefix any options entered in this area when you view it in
the Source File Options text box. The
sascc370
driver ignores the
/U
, and it passes any associated options to the appropriate phases
of compilation.
To compile and pre-link source code, select Build ftoc from the Build pull-down
menu.
Compiling and Prelinking Object Code |
To compile and prelink the source code, select the Build ftoc item from the
Build menu.
The SAS/C and C++ Cross-Platform Compiler generates a compiled object file,
ftoc.obj
, and a prelinked output file,
ftoc.exe
. Any execution
messages or error diagnostics are displayed in the Output view.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.