METHOD FOR GENERATING PROGRAM CODE
The present invention describes a method for generating program code for processing a data flow defined by plurality of bit fields comprising the steps: entering a model of the program code having a datagram part, which comprises a graphic representation of the data flow, and a processing part, wherein the entering of the datagram part comprises a generation of a graphic from a plurality of graphic elements on a display device, wherein each graphic element represents one bit field of the data flow, wherein an arrangement of the graphic elements on the display system represents an arrangement of the bit fields in the data flow, wherein an identifier, position, length, data type, and bit order is determined for each bit field, wherein the entering of the processing part comprises an entering of an expression, wherein the expression contains an operand and an operator affecting the operand, wherein the operand comprises the identifier of one of the bit fields; and converting the model into the program code, wherein the expression having the operand and the operator is converted from the processing part of the model into an instruction of the program code, wherein the instruction in the program code extracts a value of the bit field, determined by the identifier contained in the operand, from the data flow and assigns this value to a variable, or the instruction writes the value of a variable into the bit field determined by the identifier contained in the operand, wherein the variable has the data type determined for the bit field determined by the identifier or has a data type equivalent to the data type determined for the bit field determined by the identifier, and wherein the operator is converted into a command affecting the variable or into a control structure of the program code affecting the variable.