METHOD AND APPARATUS FOR AUTOMATICALLY LOGGING COMPILER OPTIONS AND/OR OVERRIDING COMPILER OPTIONS

Patent №

US 5,960,202

Granted

1999-09-28

Filed 1997

Owner

HEWLETT-PACKARD COMPANY

Lab

AI components

1

hardware

Assignment

Recorded

Dataset

AIPD

2023_r1 edition

Application

08963600

The present invention provides a method and apparatus for automatically logging compiler options currently being used in a build environment and/or for replacing or supplementing the current compiler options with new compiler options without necessarily modifying the build environment. In accordance with a first embodiment of the present invention, a wrapper program is stored at a location in memory where the compiler program normally resides. Whenever a compiler user invokes the build process program, a command is generated which is intended to invoke the compiler program. However, instead of the compiler program being invoked by the command, the wrapper program is invoked. The wrapper program comprises a software routine which analyzes the compiler commands to determine which compiler options are designated in the compiler commands. The wrapper program causes a log file of the compiler options contained in the compiler commands to be generated, which is readable by a human and/or by a machine. The wrapper program then causes the compiler program to be invoked and the compiler program then performs its normal functions. The wrapper program may be separate from the compiler program or it may be part of the compiler program. The log file generated by the wrapper program can be modified by a compiler user such that the current compiler options are replaced or supplemented with new compiler options. When the build process program invokes the wrapper program, the wrapper program causes new compiler commands to be generated which comprises the new compiler options, which may be in lieu of or in addition to the compiler options contained in the original compiler commands. The wrapper program then causes the compiler program to be invoked and the compiler program then functions in the normal manner using the options comprised in the new compiler commands. Rather than using the log file to generate new compiler options to be used by the compiler program, an environment variable can be set so that each time a source file is compiled, the compiler option set in the environment variable is used by the compiler program.

AI hardwareG06F 8/71G06F 8/41

AI classification

AI hardware1.00
Knowledge representation0.03
Planning0.02
Natural language0.01
Evolutionary computation0.00
Machine learning0.00
Vision0.00
Speech0.00

Ownership

HEWLETT-PACKARD COMPANY

assignment · 91370121

Assignors

GRANSTON, ELANA D., HOLLER, ANNE M.

On an employer assignment, the assignors are typically the inventors.

© 2026 NYSGPT2525 LLC