As an embedded software engineer, one of my periodic tasks at work is to update the documentation of our module specifications to reflect the latest code changes. Well, you could argue that the opposite is the right way to write code. First, you should write/update the specifications, then you generate…