I doubt the usefulness and whether it is worth the efforts. You save a few bytes and the whole benefit is strongly depending on where the interrupt vector is located in the table, at start or towards the end.
Beside that, the compiler would have to account for every single flag to enable an interrupt, which when set by the user, will give the most interesting effects, as suddenly code is executed, which was placed onto the vector. This opens not only a can of worms, instead a full box.
That's making the code prone to errors, while getting mostly nothing out of that risk.
↧