15. Power Programming: Tapping Important C and C Libraries

Chapter 1 - The Visual C++ Compiler, Version 6

Visual C++ 6: The Complete Reference
Chris H. Pappas and William H. Murray, III
  Copyright 1998 The McGraw-Hill Companies

Compiler Options
Microsoft Visual C++ compilers discussed in the book are global optimizing compilers that allow you to take advantage of several speed or code size options for every type of program development. In this section, we will discuss those options directly related to the 32-bit version 4.0 Microsoft C++ compiler. If you are using the 16-bit and/or 32-bit version 2.0 compiler, your options will be similar but located under different tabs.
The following compiler options allow you to optimize your code for executable size, speed, or build time. If you do not see an appreciable performance boost, it is possible that your test application does not contain enough code. All options are set from the Build menu by selecting the Settings menu item.
General
From the General tab, you can specify the use, or nonuse, of the Microsoft Foundation Class library. Output directories can also be given for intermediate and final C/C++ compiled files.
Debug
From the Debug tab, the location of the executable file can be specified along with the working directory, optional program arguments, and a remote executable path and filename. Additionally, by using the Category list, additional dynamic link libraries (DLLs) can be specified.
Custom Build
From the Custom Build tab, you can specify custom tools for use in building projects. This includes tools to run on the output file of the project configuration.
C/C++
The C/C++ tab allows you to select from the following categories: General, C++ Language, Code Generation, Customization, Listing Files, Optimizations, Precompiled Headers, and Preprocessor.
General
The General category permits the warning error level to be set, debug information to be specified, compiler optimizations to be set, preprocessor definitions to given, and project options listed.
C++ Language
The C++ Language category allows the representation method to be specified, exception handling to be set, runtime type information to be set, construction displacements to be set, and project options listed.
Code Generation
The Code Generation category allows the microprocessor to be targeted (80386 to Pentium), calling convention given, runtime library specified, and structure member alignment noted. Project options are, again, listed.
Customization
The Customization category allows the following items to be enabled or disabled:
  Language extensions
  Function-level linking
  Duplicate strings
  Minimal rebuild
  Incremental compilation
  Banner and information message suppression
Listing Files
The Listing Files category allows the generation of browse information. Additionally, the browse file destination can be set. Local variables can be allowed in the browse file. The file types can also be optionally set. Project Options are listed.
Optimizations
The Optimizations category allows various code optimizations to be set, such as speed, size, and so on. Inline function expansion can also be given. Project Options are listed.
Precompiled Headers
The Precompiled Headers category allows the use of precompiled header files. These are files with PCH extensions. Precompiled header files speed the compile and link process, but should be eliminated from your directory upon project completion because of their large size. Project Options are listed.
Preprocessor
The Preprocessor category allows preprocessor definitions to be given. It is also possible to add additional include directories (subdirectories containing header files) and ignore standard paths. Project Options are listed.
Link
The Link tab allows you to select from the following categories: General, Customization, Debug, Input, and Output.
General
From the General category, the name of the file and extension can be specified. Most frequently, the extension will be an EXE file extension. However, you’ll learn how to develop applications with DLL and SCR file extensions in this text. Object/library modules can also be entered. These are very important for multimedia applications, where specific libraries are not assumed. The following items can also be included:
  Debug information
  Incremental linking
  Profiling
  Ignoring default libraries
  Map file generation
Customization
The Customization category allows the following items to be included:
  Incremental linking
  Program database
  Output file name
  Process message printing
  Startup banner
Debug
The Debug category allows the generation of a map file and debug information in various formats.
Input
The Input category allows the specification of object/library modules. Additionally, symbol references and MS-DOS stub filenames are displayed.
Output
The Output category allows the base address, entry point, stack allocation, and version information for the project to be set.
Resources
The Resource tab permits the resource file (usually a file with a RES file extension) to be given. Additional features include the language, resource include directories, and preprocessor definitions.
OLE Types
The OLE Types tab permits the output filename, the output header filename, preprocessor definitions, and startup banner to be specified.
Browse Info
The Browse Info tab allows the Browse info file name to be specified. Additionally, the browse info file and startup banner can be checked.

Books24x7.com, Inc 2000 –  


Visual C++ 6(c) The Complete Reference
Visual Studio 6: The Complete Reference
ISBN: B00007FYGA
EAN: N/A
Year: 1998
Pages: 207

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net