METHOD AND SYSTEM FOR AUTOMATIC CODE GENERATION

    公开(公告)号:US20180088911A1

    公开(公告)日:2018-03-29

    申请号:US15273992

    申请日:2016-09-23

    CPC classification number: G06F8/34 G06F8/443 G06F8/71

    Abstract: A method for generating production code from a block diagram on a host computer is provided. A block in the block diagram has a number of input ports for receiving signals and a number of output ports for sending signals. The processor identifies a first block in the block diagram. The input signal is traced back to a second block upstream of the first block. Compliance with a optimization condition is checked, the optimization condition being fulfilled when a group of adjacent blocks has an assignment operation that affects one or more elements of the input signal while leaving at least one element of the composite variable unchanged. A combined production code is generated for the group of adjacent blocks when the optimization condition is fulfilled so that the combined production code includes write instructions for those elements of the composite variable that are affected by the assignment operation.

    METHOD AND SYSTEM FOR GENERATING PROGRAM CODE

    公开(公告)号:US20190163452A1

    公开(公告)日:2019-05-30

    申请号:US15827234

    申请日:2017-11-30

    Abstract: A method for generating program code based on one or more blocks of a block diagram in a technical computing environment, an identifier being assigned to at least one, preferably each, of the one or more blocks of the block diagram. A processor opens the block diagram in the model editor, converts the block diagram to an intermediate representation using the code generator, wherein the conversion comprises checking if a replacement condition is fulfilled for a current block in the block diagram. Checking the replacement condition includes verifying that a predefined functional code unit is assigned to the identifier of the current block, in that case changing the block to a placeholder containing input/output-definitions but no functionality. The processor then converts the intermediate representation to program code, the conversion comprising adding a predefined functional code unit from the data definition tool to the definition code corresponding to the placeholder block.

Patent Agency Ranking