Application development on Solaris OS using Sun Studio compilers and tools
Solaris Developer
ABOUT

We are the Solaris Developer Information Products Team:
Richard Friedman, David Lindt, Kami Shahi, Jyothi Srinath, Paul Echeverri, Ann Rice, Alta Elstad, Susan Morgan, Frank Jennings

DOCUMENTATION
»Solaris OS
»Sun Studio Compilers/Tools

ARTICLES
»Solaris OS
»Sun Studio Compilers/Tools

DOWNLOADS
»Solaris OS
»Sun Studio Compilers/Tools

RECENT ENTRIES
Archives
Click me to subscribe
Search

Links
 

Today's Page Hits: 45

« Previous page | Main
Thursday Jun 14, 2007
Sun Studio 12 IDE Quick Start Tutorial
Sun Studio IDE screenshot

There's now a quick-start tutorial guide for using the new Sun Studio 12 IDE. It's here.




Posted at 12:27PM Jun 14, 2007 by Richard Friedman in General  | 

Wednesday Jun 13, 2007
New Sun Studio Article: C Language Extensions

There's a new article on the Sun Studio SDN portal: 

New Language Extensions in the Sun Studio 12 C Compiler

By Dmitry Mikhailichenko, Sun Microsystems, St Petersburg, Russia, June 2007  

This article gives an overview of the following C-language extensions (part of the GNU C-implementation) introduced in the Sun Studio 12 C compiler. Although these extensions are not part of the latest ISO C99 standard, they are supported by the popular gcc compilers.

The article also demonstrates how to use the new C compiler features for creating generic macros on example of linked-list manipulation-routines. Such macros semantically mimic C++ Standard Template Library, support arbitrary data types and provide strict compile-time type-checking.

 »Read the entire article on the Sun Studio portal


Posted at 12:51PM Jun 13, 2007 by Richard Friedman in Compilers  | 

Monday Jun 11, 2007
SDN Share

SDN Share is a new pilot program (http://sdnshare.com) that enables the developer community to submit content to the Sun Developer Network websites. 

Anyone can submit tips, code, examples, even articles of some length, to the site. Submissions are moderated and reviewed, but the turnaround time seems to be measured in hours currently (except on weekends). And, viewers can vote up or down on submissions.

There are categories for Solaris that include debugging, driver development, installation, Java on Solaris, migration, networking, predictive self healing (SMF), resource management (ZFS, Zones, Containers), and security.  And there's a developer tools/sunstudio category as well.

SDN Share has just started up and the content is started to flow in. There's also an RSS feed at http://sdnshare.com/index_rss.jsp and individual feeds for individual categories.

Got some great tip on using Solaris or Sun Studio? Put it on SDN Share.



Posted at 10:25AM Jun 11, 2007 by Richard Friedman in General  | 

Saturday Jun 09, 2007
SCREENCASTS: Using the Sun Studio Performance Analyzer
Performance Analyzer lead engineer, Marty Itzkowitz, demonstrates the basics of application performance analysis, Java profiling, and hardware counter profiling using Sun Studio 12 tools in three new demos:
 



Posted at 10:50AM Jun 09, 2007 by Richard Friedman in Performance  | 

Friday Jun 08, 2007
New Features in Sun Studio 12 Compilers

Here's what's new and changed in the Sun Studio 12 compilers: 

A New Way To Specify 32-bit or 64-bit Address Model

You no longer need use the -xarch option to specify a 32-bit or 64-bit address model (LP64 versus ILP32). Two new options make it easier:

Deprecated -xarch Flags and Their Replacements Across SPARC and x86

If you are using -xarch=v9 or -xarch=amd64 to specify a 64-bit address model, use just -m64 instead. No -xarch value is required.

[Read More]

Posted at 03:49PM Jun 08, 2007 by Richard Friedman in Compilers  | 

New Article: Performance Tuning with Sun Studio and Inline Assembly Code

 There's a new article on the SDN Sun Studio portal:



Performance Tuning With Sun Studio Compilers and Inline Assembly Code


By Timothy Jacobson, Sun Microsystems, June 2007  
For developers who need faster performance out of C, C++, or Fortran programs, Sun Studio compilers provide several efficient methods. Performance tuning has always been a difficult task requiring extensive knowledge of the machine architecture and instructions. To make this process easier, the Sun Studio C, C++, and Fortran compilers provide easy-to-use performance flags.

By using performance flags, developers can quickly improve execution speed. However, sometimes compiler flags alone do not result in optimum performance. For this reason, Sun Studio compilers also allow inline assembly code to be placed in critical areas. The inline code behaves similarly to a function or subroutine call, which enables cleaner, more readable code and also enables variables to be directly accessed in the inline assembly code.

This paper provides a demonstration of how to measure the performance of a critical piece of code. An example using a compiler flag and another example using inline assembly code are provided. The results are compared to show the benefits and differences of each approach.

Contents

Introduction

For demonstration purposes, this paper uses an academic program to generate the Mandelbrot set. The example Mandelbrot program is written in C. Computing all the pixel values of the Mandelbrot set using the Sun Studio compiler is timed. Then, optimization flags are used and the computations are timed again. Finally, example Sun Studio inline assembly code is used and the computations are timed again and compared with the previous timings. The examples demonstrate two different methods for improving performance with the Sun Studio compiler: using flags and using inline assembly code.

THE REST OF THE ARTICLE IS ON THE SUN STUDIO SDN PORTAL 

 


Posted at 01:08PM Jun 08, 2007 by Richard Friedman in Tuning/Optimization  | 

Under Construction
... not ready yet, but stay tuned.

Posted at 12:19PM Jun 08, 2007 by Richard Friedman in General  |