← Back to Patent Explorer
US6186677B1 Expired / Lapsed US ⏱️ 0.0 years remaining

Byte code instrumentation

Assignee: Borland Software Corp
•
Filing: 1998-04-23
•
Granted: 2001-02-13
•
Expires: 2018-04-23
📄 Original PDF 🌐 Google Patents 🔄 Sync Now

Abstract

Abstract Instrumenting a computer program to provide instrumented byte code includes examining an initial intermediate representation of the program, selecting portions of the initial intermediate representation for instrumentation, and instrumenting the portions. Selecting the portions may include choosing portions of the initial intermediate representation corresponding to pointer arithmetic operations, operations that reads memory locations, operations that change memory locations, and/or operations that causes program variables to become defined or undefined within the program. Instrumenting the portions may include adding run time code that provides a user with an indication when a run time error occurs. The portions may subsequently be converted to byte code.

Inventors

  • 👤 David J. Angel
  • 👤 Farokh Morshed
  • 👤 David A. Seidel

Bibliographic Details

Application Number —
Jurisdiction US
Data Source google_patents
Last Synchronized 2026-10-30 09:51
CPC Classifications
G; G06; G06F; G06F11/00; G06F11/36; G06F11/362; G06F11/3624

Claims Analysis

Total Claims: 23
Claim 1
Independent Claim 85 words
A method of instrumenting a computer program, comprising: (a) examining an initial intermediate representation of the program; (b) selecting portions of the initial intermediate representation for instrumentation; (c) instrumenting the portions to provide instrumented portions; and (d) converting the instrumented portions into byte code, wherein selecting the portions includes choosing portions of the initial intermediate representation corresponding to: pointer arithmetic operations, operations that reads memory locations, operations that change memory locations, and operations that causes program variables to become defined or undefined within the program.
Claim 2
Independent Claim 85 words
A method of instrumenting a computer program, comprising: (a) examining an initial intermediate representation of the program; (b) selecting portions of the initial intermediate representation for instrumentation; (c) instrumenting the portions to provide instrumented portions; and (d) converting the instrumented portions into byte code, wherein selecting the portions includes choosing portions of the initial intermediate representation corresponding to: pointer arithmetic operations, operations that reads memory locations, operations that change memory locations, and operations that causes program variables to become defined or undefined within the program.
Claim 3
Dependent Claim 28 words
A method according to claim 1 wherein instrumenting the portions includes adding run time code that provides a user with an indication when a run time error occurs.
Claim 4
Independent Claim 98 words
A method of instrumenting a computer program, comprising: (a) examining an initial intermediate representation of the program; (b) selecting portions of the initial intermediate representation for instrumentation; (c) instrumenting the portions to provide instrumented portions; (d) converting the instrumented portions into byte code; and (e) prior to converting the instrumented portions to byte code, creating an intermediate representation tree of nodes corresponding to intermediate representation operations and operands of the initial intermediate representation, the nodes being interconnected according to a logical relationship between the operators and the operands, wherein instrumenting the portions includes modifying the intermediate representation tree.
Claim 5
Independent Claim 98 words
A method of instrumenting a computer program, comprising: (a) examining an initial intermediate representation of the program; (b) selecting portions of the initial intermediate representation for instrumentation; (c) instrumenting the portions to provide instrumented portions; (d) converting the instrumented portions into byte code; and (e) prior to converting the instrumented portions to byte code, creating an intermediate representation tree of nodes corresponding to intermediate representation operations and operands of the initial intermediate representation, the nodes being interconnected according to a logical relationship between the operators and the operands, wherein instrumenting the portions includes modifying the intermediate representation tree.
Claim 6
Dependent Claim 44 words
A method according to claim 3 , further comprising: (f) following instrumenting the portions by modifying the intermediate representation tree and prior to converting the instrumented portions, transforming the tree into an instrumented intermediate representation that is structurally equivalent to the initial intermediate representation.
Claim 7
Dependent Claim 27 words
A method according to claim 3 , wherein creating the intermediate representation tree includes interconnecting the nodes so that children nodes of an operator are operands thereof.
Claim 8
Dependent Claim 40 words
A method according to claim 5 , wherein creating the intermediate representation tree includes placing the children nodes on a local stack and then popping the children nodes off the local stack to connect the children nodes to parents thereof.
Claim 9
Independent Claim 161 words
A method of instrumenting a computer program, comprising: (a) examining an initial intermediate representation of the program; (b) selecting portions of the initial intermediate representation for instrumentation; (c) instrumenting the portions to provide instrumented portions; (d) converting the instrumented portions into byte code; (e) prior to converting the instrumented portions, creating an effective scope table that correlates a unique scope identifier for each block of intermediate representation code contained within the initial intermediate representation to an effective scope identifier that indicates whether new program variables are defined within a each block of intermediate representation code; and (f) in response to a first block of the intermediate representation code having a first effective scope identifier not equal to a second effective scope identifier of a second block of the intermediate representation code that precedes the first block of the intermediate representation code, selecting for instrumentation a portion of the intermediate representation code corresponding to a transition between the first and second blocks.
Claim 10
Independent Claim 161 words
A method of instrumenting a computer program, comprising: (a) examining an initial intermediate representation of the program; (b) selecting portions of the initial intermediate representation for instrumentation; (c) instrumenting the portions to provide instrumented portions; (d) converting the instrumented portions into byte code; (e) prior to converting the instrumented portions, creating an effective scope table that correlates a unique scope identifier for each block of intermediate representation code contained within the initial intermediate representation to an effective scope identifier that indicates whether new program variables are defined within a each block of intermediate representation code; and (f) in response to a first block of the intermediate representation code having a first effective scope identifier not equal to a second effective scope identifier of a second block of the intermediate representation code that precedes the first block of the intermediate representation code, selecting for instrumentation a portion of the intermediate representation code corresponding to a transition between the first and second blocks.
Claim 11
Independent Claim 167 words
A method of instrumenting a computer program, comprising: (a) examining an initial intermediate representation of the program; (b) selecting portions of the initial intermediate representation for instrumentation; (c) instrumenting the portions to provide instrumented portions; (d) converting the instrumented portions into byte code; (e) prior to converting the instrumented portions, creating an effective scope table that correlates a unique scope identifier for each block of intermediate representation code contained within the initial intermediate representation to an effective scope identifier that indicates whether new program variables are defined within a each block of intermediate representation code; and (f) in response to a first block of the intermediate representation code containing a label and having associated therewith a first effective scope identifier not equal to a second effective scope identifier of a second block of the intermediate representation code containing a control flow instruction to the label, selecting for instrumentation a portion of the intermediate representation code corresponding to a transition between the control flow instruction and the label.
Claim 12
Independent Claim 167 words
A method of instrumenting a computer program, comprising: (a) examining an initial intermediate representation of the program; (b) selecting portions of the initial intermediate representation for instrumentation; (c) instrumenting the portions to provide instrumented portions; (d) converting the instrumented portions into byte code; (e) prior to converting the instrumented portions, creating an effective scope table that correlates a unique scope identifier for each block of intermediate representation code contained within the initial intermediate representation to an effective scope identifier that indicates whether new program variables are defined within a each block of intermediate representation code; and (f) in response to a first block of the intermediate representation code containing a label and having associated therewith a first effective scope identifier not equal to a second effective scope identifier of a second block of the intermediate representation code containing a control flow instruction to the label, selecting for instrumentation a portion of the intermediate representation code corresponding to a transition between the control flow instruction and the label.
Claim 13
Independent Claim 108 words
A method of instrumenting a computer program, comprising: (a) examining an initial intermediate representation of the program; (b) creating an intermediate representation tree of nodes corresponding to intermediate representation operations and operands of the initial intermediate representation, the nodes being interconnected according to a logical relationship between the operations and the operands; (c) selecting portions of the initial intermediate representation for instrumentations; (d) instrumenting the portions by modifying the intermediate representation tree with run time instrumentation code; (e) using the intermediate representation tree to create an instrumented intermediate representation that is structurally equivalent to the initial intermediate representation; and (f) converting the instrumented intermediate representation to byte code.
Claim 14
Independent Claim 108 words
A method of instrumenting a computer program, comprising: (a) examining an initial intermediate representation of the program; (b) creating an intermediate representation tree of nodes corresponding to intermediate representation operations and operands of the initial intermediate representation, the nodes being interconnected according to a logical relationship between the operations and the operands; (c) selecting portions of the initial intermediate representation for instrumentations; (d) instrumenting the portions by modifying the intermediate representation tree with run time instrumentation code; (e) using the intermediate representation tree to create an instrumented intermediate representation that is structurally equivalent to the initial intermediate representation; and (f) converting the instrumented intermediate representation to byte code.
Claim 15
Dependent Claim 48 words
A method according to claim 9 , wherein selecting the portions includes choosing portions of the initial intermediate representation corresponding to pointer arithmetic operations, operations that reads memory locations, operations that change memory locations, and operations that causes program variables to become defined or undefined within the program.
Claim 16
Dependent Claim 27 words
A method according to claim 9 , wherein creating the intermediate representation tree includes interconnecting the nodes so that children nodes of an operator are operands thereof.
Claim 17
Dependent Claim 40 words
A method according to claim 9 , wherein creating the intermediate representation tree includes placing the children nodes on a local stack and then popping the children nodes off the local stack to connect the children nodes to parents thereof.
Claim 18
Dependent Claim 121 words
A method according to claim 9 , further comprising: (g) creating an effective scope table that correlates a unique scope identifier for each block of intermediate representation code contained within the initial intermediate representation to an effective scope identifier that indicates whether new program variables are defined within a each block of intermediate representation code; and (h) in response to a first block of the intermediate representation code having a first effective scope identifier not equal to a second effective scope identifier of a second block of the intermediate representation code that precedes the first block of the intermediate representation code, selecting for instrumentation a portion of the intermediate representation code corresponding to a transition between the first and second blocks.
Claim 19
Dependent Claim 127 words
A method according to claim 9 , further comprising: (g) creating an effective scope table that correlates a unique scope identifier for each block of intermediate representation code contained with the initial intermediate representation to an effective scope identifier that indicates whether new program variables are defined within a each block of intermediate representation code; and (h) in response to a first block of the intermediate representation code containing a label and having associated therewith a first effective scope identifier not equal to a second effective scope identifier of a second block of the intermediate representation code containing a control flow instruction to the label, selecting for instrumentation a portion of the intermediate representation code corresponding to a transition between the control flow instruction and the label.
Claim 20
Dependent Claim 151 words
A computer program instrumenter, comprising: (a) examining means for examining an initial intermediate representation of the program; (b) creating means, coupled to the examining means, for creating an intermediate representation tree of nodes corresponding to intermediate representation operations and operands of the initial intermediate representation, the nodes being interconnected according to a logical relationship between the operations and the operands; (c) selecting means, coupled to the examining means, for selecting portions of the initial intermediate representation for instrumentations; (d) instrumenting means, coupled to the creating means and the selecting means, for instrumenting the portions by modifying the intermediate representation tree with run time instrumentation code; (e) tree means, coupled to the instrumenting means, for using the intermediate representation tree to create an instrumented intermediate representation that is structurally equivalent to the initial intermediate representation; and (f) means, coupled to the tree means, for converting the instrumented intermediate representation to byte code.
Claim 21
Dependent Claim 151 words
A computer program instrumenter, comprising: (a) examining means for examining an initial intermediate representation of the program; (b) creating means, coupled to the examining means, for creating an intermediate representation tree of nodes corresponding to intermediate representation operations and operands of the initial intermediate representation, the nodes being interconnected according to a logical relationship between the operations and the operands; (c) selecting means, coupled to the examining means, for selecting portions of the initial intermediate representation for instrumentations; (d) instrumenting means, coupled to the creating means and the selecting means, for instrumenting the portions by modifying the intermediate representation tree with run time instrumentation code; (e) tree means, coupled to the instrumenting means, for using the intermediate representation tree to create an instrumented intermediate representation that is structurally equivalent to the initial intermediate representation; and (f) means, coupled to the tree means, for converting the instrumented intermediate representation to byte code.
Claim 22
Dependent Claim 52 words
A computer program instrumenter,, according to claim 15 , wherein the portions that are selected by the selecting means includes intermediate representation code corresponding to: pointer arithmetic operations, operations that reads memory locations, operations that change memory locations, and operations that causes program variables to become defined or undefined within the program.
Claim 23
Dependent Claim 28 words
A computer instrumenter, according to claim 15 , wherein the nodes of the intermediate representation tree are interconnected so that children nodes of an operator are operands thereof.

USPTO Annuity & Maintenance Windows

Annuity Stage Window Opens Payment Deadline Surcharge Period Until Estimated Fee Status
3.5 Years (Year 4) 2004-02-13 2004-08-14 2005-02-13 $2000.00 Window Closed / Lapsed
7.5 Years (Year 8) 2008-02-13 2008-08-14 2009-02-13 $3760.00 Window Closed / Lapsed
11.5 Years (Year 12) 2012-02-13 2012-08-14 2013-02-13 $7700.00 Window Closed / Lapsed

Assigned Categories & Tags

No categories assigned to this patent yet.

Assign Category Tag