Pragmas and exceptions
- by Darryl Gove
The compiler pragmas:
#pragma no_side_effect(routinename)
#pragma does_not_write_global_data(routinename)
#pragma does_not_read_global_data(routinename)
are used to tell the compiler more about the routine being called, and enable it to do a better job of optimising around the routine. If a routine does not read global data, then global…