read_only_switch_tables

Controls where tables for switch statements are placed in object code.

Syntax
#pragma read_only_switch_tables on | off | reset
  
Remarks

This option specifies where the compiler places executable code addresses for switch statements. When this option is on , the compiler places these tables in a read-only section ( .rodata ), allowing the linker to place this object code in a ROM area instead of RAM.

When this option is off , the compiler places these switch tables in an object code section that is readable and writable ( .data ). Putting these tables in a read/write section allows relocation at runtime. The System V ABI, SuSE, YellowDog, and SDA PIC/PID application binary interfaces (ABIs) allow relocatable object code at runtime.