#pragma options ro, #pragma strings
Specifies the storage type for string literals.
When ro or strings=readonly is in effect, strings are placed in read-only storage. When noro or strings=writeable is in effect, strings are placed in read/write storage.
Option syntax .-ro---. >>- -q--+-noro-+-----------------------------------------------><
Pragma syntax .-readonly--. >>-#--pragma--strings--(--+-writeable-+--)---------------------><
Strings are read-only for all invocation commands except cc. If the cc invocation command is used, strings are writeable.
Strings are read-only.
Placing string literals in read-only memory can improve runtime performance and save storage. However, code that attempts to modify a read-only string literal may generate a memory error.
The pragmas must appear before any source statements in a file.
None.
xlc myprogram.c -qnoro