Program code generator and program
First Claim
1. A program code generator that is used to generate a control program, which is embedded in an electronic control unit to perform vehicle control, wherein the program code generator generates program code, which corresponds to a processing program that constitutes at least part of the control program, based on at least one program code generation rule when abstract language, which describes specifications of the processing program, is inputted to the program code generator, wherein the program code includes a plurality of program code segments, the program code generator comprising:
- a variable information obtaining means for obtaining variable information, which indicates whether a variable contained in the abstract language is a vehicle specific variable that is specific to the vehicle control; and
a code generating means for generating at least one of the plurality of program code segments, wherein the code generating means generates a vehicle specific program code segment as one of the program code segments based on the variable information, which is obtained by the variable information obtaining means, through use of a corresponding one of the at least one generation rule, which corresponds to the vehicle specific variable when the variable contained in the abstract language is the vehicle specific variable.
1 Assignment
0 Petitions
Accused Products
Abstract
Variable information, which indicates whether a variable is a vehicle specific variable that is specific to vehicle control, is added in the form of variable name to the model. In a code generating tool, an extraction engine extracts the variable name from an intermediate file to obtain the variable information, and a code generation block generates vehicle specific program code corresponding to the vehicle specific variable using a variable generation rule stored in a rule storage.
15 Citations
14 Claims
-
1. A program code generator that is used to generate a control program, which is embedded in an electronic control unit to perform vehicle control, wherein the program code generator generates program code, which corresponds to a processing program that constitutes at least part of the control program, based on at least one program code generation rule when abstract language, which describes specifications of the processing program, is inputted to the program code generator, wherein the program code includes a plurality of program code segments, the program code generator comprising:
-
a variable information obtaining means for obtaining variable information, which indicates whether a variable contained in the abstract language is a vehicle specific variable that is specific to the vehicle control; and
a code generating means for generating at least one of the plurality of program code segments, wherein the code generating means generates a vehicle specific program code segment as one of the program code segments based on the variable information, which is obtained by the variable information obtaining means, through use of a corresponding one of the at least one generation rule, which corresponds to the vehicle specific variable when the variable contained in the abstract language is the vehicle specific variable. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
-
14. A computer program for generating program code, which corresponds to a processing program that constitutes at least part of a control program embedded in an electronic control unit to perform vehicle control, based on at least one program code generation rule when abstract language, which describes specifications of the processing program, is inputted, wherein the program code includes a plurality of program code segments, the computer program comprising instructions for:
-
obtaining variable information, which indicates whether a variable contained in the abstract language is a vehicle specific variable that is specific to the vehicle control; and
generating a vehicle specific program code segment as one of the plurality of program code segments when the variable contained in the abstract language is the vehicle specific variable, wherein the vehicle specific code segment is generated based on the variable information through use of a corresponding one of the at least one generation rule, which corresponds to the vehicle specific variable.
-
Specification