Language processing system and language processing method enabling reduction of memory region and overhead in profile information collection of computer
AssigneeNEC Corporation
InventorsTakayuki Miura, Rika Ono
Life of this patent
Estimating the term…
Abstract
A language processing method detects function call in a source program by static analysis, inserts a branching code to profile process per function call detected in the source program and setting a region of a table storing number of times of corresponding function call per an identification number of call pair in function call, executes translation of the source program inserted the branching code to the profiling process, and increments number of function call of the table with taking the identification number corresponding to kind of call pair in corresponding function call, as index, when the inserted profiling process is present.
Claims16
A language processing system for collecting profile information during execution of a source program, comprising:
- profile process inserting means for detecting a function call in said source program by static analysis, inserting a branching code into a profile process corresponding to said detected function call, and creating a region in a table for storing a number of occurrences of said detected function call, the location of said region within said table corresponding to a numerical identifier of a call pair of the detected function call;
- and
- program executing means for executing translation of said source program including branching codes inserted into the profile process corresponding to said source program, and incrementing a number of occurrences stored in the table in a region corresponding to a numerical identifier of a call pair of a detected function call when a branching code is present.
A language processing method for collecting profile information during execution of a source program, comprising:
- profile process insertion comprising detecting a function call in said source program by static analysis, inserting a branching code into a profile process corresponding to said detected function call, and creating a region in a table for storing a number of occurrences of said detected function call, the location of said region within said table corresponding to a numerical identifier of a call pair of the detected function call;
- and
- program execution comprising executing translation of said source program including branching codes inserted into the profile process corresponding to said source program, and incrementing a number of occurrences stored in the table in a region corresponding to a numerical identifier of a call pair of a detected function call when a branching code is present.
A computer readable memory storing a language processing program to be loaded and executed in a computer to collect profile information during execution of a source program, the processing comprising:
- profile process insertion comprising detecting a function call in said source program by static analysis, inserting a branching code into a profile process corresponding to said detected function call, and creating a region in a table for storing a number of occurrences of said detected function call, the location of said region within said table corresponding to a numerical identifier of a call pair of the detected function call;
- and
- program execution comprising executing translation of said source program including branching codes inserted into the profile process corresponding to said source program, and incrementing a number of occurrences stored in the table in a region corresponding to a numerical identifier of a call pair of a detected function call when a branching code is present.
Dependencies are inferred from the claim text.