METHOD AND APPARATUS FOR DEBUGGING OF OPTIMIZED CODE USING EMULNTION

Patent №

US 6,434,741

Granted

2002-08-13

Filed 1998

Owner

HEWLETT-PACKARD COMPANY

Lab

AI components

1

hardware

Assignment

Recorded

Dataset

AIPD

2023_r1 edition

Application

09070541

The invention is a method for debugging a machine code of a program that has been subjected to an optimizing action, wherein the machine code may have been reordered, duplicated, eliminated or transformed so as not to correspond with the program's source code order. The method derives a table which associates each machine code instruction with a source construct for which it was generated. The user sets a breakpoint at a breakpoint P in the source code where execution is to stop. Then the method determines at least one corresponding location for the breakpoint in the machine code through use of the table, and executes, by native execution or emulation, only machine code instructions which correspond to source constructs that precede the breakpoint in the source code order. The method further enables a comparison of the results of two passes of emulation (in different orders) to detect a class of bugs that are particularly hard to find: bugs caused by optimizer errors and user bugs that manifest themselves only in the optimized executable.

AI classification

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

Ownership

HEWLETT-PACKARD COMPANY

assignment · 94080288

Assignors

MIRANI, RAJIV, OLSEN, BRUCE A., PATIL, HARISH

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

© 2026 NYSGPT2525 LLC