MATLAB: GRT vs ERT

real time workshop

What is the key difference between Generic real time code and Embedded real time code?

Best Answer

When you choose a target configuration, you implicitly choose a code format. If you use Real-Time Workshop Embedded Coder, for example, the code generated will be in embedded C format. The embedded C code format is a compact format designed for production code generation. Its small code size, use of static memory, and simple call structure make it optimal for embedded applications.
Many other targets, such as the generic real-time (GRT) target, use the real-time code format. This format, less compact but more flexible, is optimal for rapid prototyping applications.