MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerAnimemes/comments/f6mhfi/duffs_device/p26wxta/?context=3
r/ProgrammerAnimemes • u/bucket3432 • Feb 20 '20
21 comments sorted by
View all comments
Show parent comment
1
It could be to hint to the compiler to generate a jump table for the function. A jump table is a list of addresses to jump to with numbers. It compresses a large number of if(){goto}s into a goto table[case].
View all comments
Show parent comment
1
u/Da_rizzlah Aug 07 '26
It could be to hint to the compiler to generate a jump table for the function. A jump table is a list of addresses to jump to with numbers. It compresses a large number of if(){goto}s into a goto table[case].