MathWorks has published the Abstract Operating System (AOS) API which provides portability and extendability for code generated by Simulink. This work is a joint work of Santa Anna university and SYSGO AG made within Horizon2020 SAFURE project.

The operating systems API in Simulink is tailored to the synchronous reactive model and is rich enough to fulfill its purpose, yet small enough to easily be extended to a set of practical operating systems. 
From the workflow, an application is developed in MATLAB/Simulink and uses services specific in AOS. Then for deployment the code is generated for the target operating system.

Current version supports mapping to the following operating systems: Windows, Linux and PikeOS.