Patent ID: 7367012

Claim:
A computer-implemented method for generating code, the method comprising: specifying a block diagram model, the block diagram model including data having internal pre-defined data storage classes and an external custom data storage class associated with data items of the block diagram model, the external custom data storage class characterized by instructions defined by a user for generating code for each type of reference to data items of the external custom data storage class in the block diagram model; and generating software code for the block diagram model with a code generator using the internal predefined data storage classes and the external custom data storage class for data items of the block diagram, said generating comprising: applying a fixed set of software instructions inherent in the code generator which characterize the pre-defined data storage classes inherent in the code generator to generate code for a reference to the pre-defined data storage classes; and applying an external set of software instructions which are defined by a user and which characterize the external custom data storage class to generate code for a reference to the external custom data storage class, the external set of one or more software instructions being external to the code generator.