Patent ID: 7269820

Claim:
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 or an ordinary variable, wherein the vehicle specific variable is a variable, content of which needs to be retained even when a vehicle power supply is turned off, and the vehicle specific variable 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.