In my last column, I suggested that you use casts sparingly and with caution. One of the places where programmers overuse casts is in setting up interrupt vectors. As is often the case with low-level programming, you may not be able to eliminate every cast as you set up an interrupt vector, but you can eliminate most.
展开▼