Optimizing code using direct flow ports

You can further optimize code by connecting flow ports directly to the inner parts of a composition.

About this task

This optimization is done by using a direct connection between the source and target rather than using an interface-based approach.

The generation of this optimized code for flow ports is controlled by the following properties which are part of the MicroC profile:

By default, the use of direct flow ports is switched on when using the MicroC profile.

The optimization used for direct flow ports can only be applied to atomic (unidirectional) flow ports.

Direct flow ports differ from ordinary flow ports only in terms of the code generated. They are subject to the same constraints as ordinary flow ports: attribute name must match flow port name, type of the attribute in the sending and receiving objects must match.


Feedback