Can you explain a time you had to optimize code for a specific hardware architecture in an embedded system?