Analytical Cost Estimation For Embedded Systems