Switch Lowering in GCC(xoranth.net)
201 points by signa11 | 40 comments
A blog post examining how GCC lowers C switch statements into jump tables, comparison trees, and bit tests, with assembly examples and a walkthrough of GCC source.
1 story tagged jump-tables, newest first.
201 points by signa11 | 40 comments
A blog post examining how GCC lowers C switch statements into jump tables, comparison trees, and bit tests, with assembly examples and a walkthrough of GCC source.