David Pagan's Weblog

     
 
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

Posted by dpagan @ 06:12 PM PDT [ Comments [0] ]
 
 
 
 
Trackback URL: http://blogs.sun.com/dpagan/entry/an_upcoming_change_in_behavior
Comments:

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed
 
« November 2009
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

[RSS Newsfeed]

Valid XHTML or CSS?

[This is a Roller site]
Theme by Rowell Sotto.
 
© David Pagan's Weblog