Cross-Layer Customization Platform For Low-Power And Real-Time Embedded Applications