Incremantal code generation is mode of code generation in which simulink generate code for those portions of the model that have changed logically since the last build.
Incremental build for simulation:
When a model is simulated, s-function is generated for stateflow charts and tables in the model for simulation. Simulation target for stateflow is 'Sfun'. Incremental build is available as option in Simulation target build mode. In incremental build mode Simulink rebuilds only those portions of the target that have changed since the last build. This reduces the target build time and hence simulation time.
Incremental code generation for RTW:
Same concept applies to code generation by RTW for a referenced models. RTW generates code for only those portion of model which is changed from last build. So if the model is very large, this feature reduces the significant code generation and build time.
Best Answer