An upcoming change in behavior in the Sun Studio C compiler ...

In an upcoming expresss release of Sun Studio, the C compiler will provide a new option.

    -features=[no%]conststrings

It enables/disables string literal placement in read-only memory. The default for this new option will be -features=conststrings, which replaces the deprecated -xstrconst option. Note that with this change in default, programs attempting to write to a string literal will now fail under the  default compilation mode just as if -xstrconst had been explicitly specified on the command line. Prior to this change, no runtime error would be seen and the contents of the string written to would change. To revert to the old behavior, specify

    -features=no%conststrings

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

dpagan

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today