2 ms·
This is actually why you want the compiler to track it. You write an algorithm that seems reasonable. And you encode timing constraints into the thing. Now y
by adrianratnapala 8y ago
This is actually why you want the compiler to track it.
You write an algorithm that seems reasonable. And you encode timing constraints into the thing. Now you re-target to a different machine, and the compiler re-checks those constraints. A much cheaper way of dealing with weird timing bugs than doing a post-mortem of why the fuel valves didn't quite close on the day of the rocket test.
But this only works if the CPU is knowable to the compiler. Which is why it is only even remotely feasible in the embedded world (where it is also the most useful).
- gpderetta 8y agoThe compiler can only help so much as many of the timing parameters are variables and runtime dependent.