Application-Specific Design And Optimization For Ultra-Low-Power Embedded Systems