External Editor in Sun Studio 8 IDE

When I invoke any external editor (Gvim or Xemacs) via File->Open File, a note dialog comes up which says:
Waiting for connection from external editor...... If you want to cancel external editor support and use the built-in editor instead, click Cancel
The external editor never comes up and the dialog box stays there until I click "Cancel".
While this might occur for a number of common reasons, which hopefully I've considered, while trying to troubleshoot, the solution was very strange. When my unix prompt contained a carriage return as in the following:
"413:sc:/home/server_k55/rbuckwa
as defined by:
PS1='!:$Hostname $PWD
the above described behavior occurred.
However, when the unix prompt did not contain a carriage return as in:
"sc{413}$"
defined by:
PS1="$Hostname{!}$ "
the IDE opened the file and the external editor successfully.
Does anyone have any explanation or experience with this strange behavior. BTW I'm running Solaris 8.
thanks,
rick

This sounds like a bug. We probably don't test with a prompt
containing a carriage return. You can file this bug using
http://bugs.sun.com if you like. Look for the "Sun Studio" categories.
--chris                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Pros and Cons of the Sun studio IDE

    Hi all,
    I have played a bit with the Sun studio now and I want to give you some feedback.
    First of all, my background. I am working in a team with about 20 developers, developing a C++ application on Solaris.
    Last time I stumbled across an installed Sun Studio 9 and gave it a try.
    Initially I was verry impressed by the great debugger- and analyzer frontends, they look nice and work well.
    After using the debugger from time to time and really enjoyed it, I thought about testing the studio for all-day work.
    So, here are my impressions and the things that keep me away from using it.
    1. The default editor isn't very usefull. For example, I missed regular expression search (and replace) and the feature to mark columns. Furthermore I really missed syntax highlightning for some other file types like sql- and config files, or even the feature to create my own. By the way, the predefined highlightning for C-files is also a bit too simple.
    2. I think the external editor plugin is a bit buggy too, because sometimes I have trash in files that I have edited before. But this can also be my fault, because I use gvim and some editor macros to do sccs-actions. I think the problems occur mainly if I use this macros. In every case the external editor is not really an alternative way for me.
    2. In our team we are using teamware as version-control tool and it does a really good job. So for Workshop 7 we have some editor macros and the teamware-tools from version 6. In the studio I have found the feature to create my own version control profiles, but this is a hard way with many tries and errors. For example I have never accomplished it to set further status information in the explorer window, it's 'Local' all the time.
    3. The studio needs very much memory, I think about 250 MB or so. This is impressive, especially if all the 20 people in our team would start sunstudio. I have found a hint somewhere in the docu that the studio can work in a client-server mode over a VNC, but I haven't tried it because I don't know what the admins would say if I start running my own VNC.
    4. After I have also tried eclipse with the cdt plugin, I really began to like the source-browser and missed it in the studio.
    5. All in all I hoped that the newest Sunstudio got a netbeans update, because some of the plugins that exists only for newer netbeans-versions would also be useful for me and my team. But, at least the latest linux-preview is also based on netbeans 3.5. Maybee do you have plans to update netbeans within the studio?
    Ok, that's all for now ;-)
    Please don't understand me wrong, I really like some features of the studio, and it's a great improvement compared with the workshop version 6 that I used before. But, at all for me the studio is still not useable in all-day work.
    P.S.
    At work I have only access to Sun studio version 9, at home I have also tried version 11, that is the reason why I mixed the version-numbers sometimes ;-)
    With kind regards,
    Maaz76

    1. The default editor isn't very usefull. For example, I missed
    regular expression search (and replace) and the feature to
    mark columns. Furthermore I really missed syntax highlightning
    for some other file types like sql- and config files, or even the
    feature to create my own. By the way, the predefined highlightning
    for C-files is also a bit too simple.The current IDE we're working on is based on a current NetBeans
    and has regular expression search (and replace). I'm pretty sure
    NetBeans 5.0 (and presumably later versions) has syntax highlighting
    for sql (its got an "SQL Editor" module which I'm guessing has the
    highlighing you're asking for).
    We're also working on many new editor features not in current
    Sun Studio IDEs. These are mostly parser based stuff like code
    completion, code folding, and a class viewer.
    2. I think the external editor plugin is a bit buggy too, because
    sometimes I have trash in files that I have edited before. But this
    can also be my fault, because I use gvim and some editor macros
    to do sccs-actions. I think the problems occur mainly if I use this
    macros. In every case the external editor is not really an alternative
    way for me.Its very difficult keeping sources in synch between netbeans and
    an external editor. If you can give us a repeatable scenario for
    failure we can take a look.
    2. In our team we are using teamware as version-control tool and
    it does a really good job. So for Workshop 7 we have some editor
    macros and the teamware-tools from version 6. In the studio I have
    found the feature to create my own version control profiles, but this
    is a hard way with many tries and errors. For example I have never
    accomplished it to set further status information in the explorer
    window, it's 'Local' all the time.We'll definately have sccs support in the next release. TeamWare
    support depends on the status of TeamWare. Sun end-of-lifed it
    4 years ago. As long as its EOL'ed, we won't support it. But if it
    were officially brought back, we'd (most likely) support it.
    3. The studio needs very much memory, I think about 250 MB
    or so. This is impressive, especially if all the 20 people in our team
    would start sunstudio. I have found a hint somewhere in the docu
    that the studio can work in a client-server mode over a VNC, but I
    haven't tried it because I don't know what the admins would say if
    I start running my own VNC.The VNC model shouldn't help on memory. How do you use the IDE
    now? Do each of your 20 developers have Solars desktops? I'm
    guessing they don't since you're talking about 20 users on one
    system. The VNC approach runs all 20 IDEs (assuming all 20
    developers are concurrently running the IDE) on the server machine.
    So VNC won't help in that case.
    On the other hand, if the 20 developers have Windows PCs on their
    desktop then the next IDE should help substantially. We're working
    on having the IDE run locally on your desktop, and do remote building
    and debugging on your Solaris server. This puts most of the IDE
    overhead on your desktop rather than the server. This should be
    a much better model for multi-user development where Solaris
    developers don't have Solaris desktops.
    4. After I have also tried eclipse with the cdt plugin, I really began
    to like the source-browser and missed it in the studio.We're planning on some browser capabilities. Some are in the
    planning stages and others aren't even that far along. But we are
    getting repeated inquiries about a source browser.
    5. All in all I hoped that the newest Sunstudio got a netbeans
    update, because some of the plugins that exists only for newer
    netbeans-versions would also be useful for me and my team. But,
    at least the latest linux-preview is also based on netbeans 3.5.
    Maybee do you have plans to update netbeans within the studio?Well, each major netbeans release has had so many internal
    changes its been difficult keeping up. Our next release is planning
    to be much more in synch with NetBeans releases. We're doing
    current development on the NetBeans trunk (currently thats targeting
    the NetBeans 6.0 release).
    Gordon

  • Configuring external editor in sunstudio IDE

    Hello,
    I have decided to try and switch to sunstudio IDE as my main development environment. I'd like to configure it to use xemacs as an editor (instead of using the default editor). However, I couldn't easily figure out how to do this. If you could point me in the right direction, I'd greatly appreciate it.
    Thank you.

    If you want to connect xemacs to the Sun Studio 12 IDE, - sorry, there is no such feature anymore.
    The xemacs editor is included in the Sun Studio 12 product, but there is no way to connect it to the Sun Studio IDE.
    Sorry about that. Can you try to use the Sun Studio 12 built-in editor? It is much better than it was in previous versions.
    Thanks,
    Nik

  • How to run lint in the Sun Studio 12 IDE

    I'm a newbie to the Sun Studio IDE, and I can't find a way to run lint in the IDE. The C compiler does not give many warnings (unused variables, etc), and lint does, so I want to get the lint diagnostics within the IDE.
    I can run lint from a terminal, but that is very cumbersome when you have many source files.
    Thanks

    I've inherited a large project and need to run Lint on the code. I came across this thread doing an internet search. This is my first time using SunStudio, so I'm pretty clueless with every aspect of getting this code through Lint.
    I have been able to get the code compiled and everything is imported correctly into Sun Studio, though I'm not 100% sure how I did it.
    Can somebody explain the above commands for me to add into the Makefile, so I can run Lint in the IDE? Or, explain a better way to get Lint running on the code in the IDE?
    Thank you for your help, in advance.

  • Sun Studio 11 do not parse make output and create link to file?

    Hi,
    Running Sun Studio 11 and can only get file links in the output window when I run a make command that uses CC -g (debug option). We have integrated other tools into our make system (flexlint, cppUnit..) and even though we make sure that the syntax is exactly the same as the compiler output and matches regular expression under tools->options->building->make settings->error expression, it doesn't work. Why do you have to debug compile to get sun studio to create a file link in the output window? Doesn't sun studio just parse the text from the make command?
    example of flexlint output for which no link is created:
    "/vobs/project/oss/fm/fm4/fm-fmalib/fmbal/fmaaulib/src/FMA_List.cc", line 440: Error 84: sizeof object is zero or object is undefined'�
    example of make debug output for which we do get a link:
    "/vobs/project/oss/fm/fm4/fm-fmalib/fmbal/SunOS5.10/inc/FMA_alarm_record.hh", line 1310: Warning (Anachronism):Info "static" is not allowed and is being ignored.
    Regards,
    Ola

    I'd second Maxim's suggestion: try NetBeans 5.5 with C/C++ Development Pack. The official release of NetBeans C/C++ Development Pack 5.5 has happened a few days ago. You can download it from
    http://www.netbeans.info/downloads/all.php?b_id=2284
    Some of the changes between the beta3 build and FCS are:
    * Significant performance improvements in the code parser resulting in faster results in the Class View and Code Completion
    * Programs now run in an external terminal (system dependent) by default. This allows better input control
    * Significant performance improvement in the debugging module
    * Significant functionality improvement in the debugging module
    * New project type "C/C++ Project From Existing Code" which simplifies creating a project from existing code
    * Macro support in code completion
    * Hyperlink navigation for macro usages and #include directives
    * Reformat code
    * Code folding
    * Code completion
    All these features will appear in next Sun Studio release, so you can
    consider NetBeans C/C++ Development Pack 5.5 as a preview of new
    Sun Studio IDE.

  • Sun Studio 11 with Rational ClearCase (for its VCS)

    I'm trying to use Sun Studio 11 with Rational ClearCase.
    IMHO, it is possible to use ClearCase in it as a VCS,
    because an error message in Sun Studio 11 indicated http://vcsgeneric.netbeans.org/profile/ to add external VCS support.
    Then, my questions are...
    1. Is it possible to use Rational ClearCase for the VCS?
    2. If it is possible, which module do I have to get from the site
    (http://vcsgeneric.netbeans.org/profiles/)?
    3. How to Install it into Sun Studio 11?
    Thanks in advance.

    First of all - Sun Studio IDE is shipped without Clear Case support,
    and there is no official way to add this feature. Technically it is possible
    to add a plugin module, compatible with NetBeans 3.5, which will
    provide Clear Case support, but it is not a supported configuration.
    So it is not recommended to experiment with a Sun Studio installation,
    which is used in real job. The answers below are mostly my guess,
    because we did not try Sun Studio with Clear Case.
    1. Is it possible to use Rational ClearCase
    for the VCS?Yes, I think there is a ClearCase plugin module for Netbeans 3.5:
    http://vcsgeneric.netbeans.org/profiles/index.html
    2. If it is possible, which module do I have to get
    from the site
    (http://vcsgeneric.netbeans.org/profiles/)?
    I think this one:
    http://vcsgeneric.netbeans.org/files/documents/67/117/clearcase-profile.nbm
    . How to Install it into Sun Studio 11?You have to be able to write to the installation tree, which means you
    have to be root, or you have to change access modes. This module
    will be installed in /opt/netbeans/3.5V11/ directory, so this directory
    and its subdirectories should be writable for you. You have to start
    Netbeans using script /opt/netbeans/3.5V11/ bin/runide.sh, and
    upgrade it with the new plugin module. I can provide more details,
    but I want to repeat again, that this is unsupported configuration,
    so if you want to try it on your own system as an experiment -
    let me know, I'll describe the process in details.
    Sorry about this problem.
    Thanks,
    Nik

  • Sun Studio 11: Cannot create a new file

    When I want to create a new *.h or *.cc file in my CVS mounted directory tree, studio raises it's famous "Unexpected Exception" dialog with a java stack trace. I have them prepared if you want, I just wanted to check before if there is some already known bug or advice. This worked flawlessly on Sun Studio 10.
    As for source browser (another topic in this forum), yeah, I would also very much like some kind of source browser, e.g. to be able to find all definitions/calls to my virtual method, have a class hierarchy...
    And one final note on the constant problems in communication between NetBeans and XEmacs, especially if there are two or more XEmacs windows open. Initially all works ok, but with time it starts...source error hyper links from make/build window and search dialog fail to open and position in the source file, then it can't open a file from Filesystems window, and when I restart the SunStudio, everything works again for some time.
    This was most annoying in release 9, then somewhat better in 10 but still present, and I see now nothing is better in release 11.
    Details:
    OS = SunOS 5.8 Generic_117350-26
    HW = sun4u sparc SUNW,Sun-Blade-1500
    SunStudio 11, netbeans 3.5V11, jdk1.5.0_06
    (all mounted from a Solaris 9 driven server)
    Thanks for reading and answers.
    Best regards.

    Thank you for your report! There is no bug filed for
    this issue,
    so, please, provide us with the java stack trace . OK, so there is a stack trace when opening a new header file:
    java.lang.NullPointerException
    at org.netbeans.modules.cpp.editor.CCFSrcFileIterator.addChangeListener(CCFSrcFileIterator.java:110)
    at org.openide.loaders.TemplateWizardIterImpl.setIterator(TemplateWizardIterImpl.java:73)
    at org.openide.loaders.TemplateWizard.setTemplateImpl(TemplateWizard.java:168)
    at org.openide.loaders.TemplateWizard1.implStoreSettings(TemplateWizard1.java:499)
    at org.openide.loaders.TemplateWizardPanel1.storeSettings(TemplateWizardPanel1.java:112)
    at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:471)
    at org.openide.loaders.TemplateWizard.updateState(TemplateWizard.java:619)
    at org.openide.WizardDescriptor.goToNextStep(WizardDescriptor.java:612)
    at org.openide.WizardDescriptor.access$300(WizardDescriptor.java:55)
    at org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:1110)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
    at java.awt.Component.processMouseEvent(Component.java:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1774)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
    at java.awt.Dialog$1.run(Dialog.java:515)
    at java.awt.Dialog.show(Dialog.java:536)
    at org.netbeans.core.NbPresenter.superShow(NbPresenter.java:690)
    at org.netbeans.core.NbPresenter.doShow(NbPresenter.java:733)
    at org.netbeans.core.NbPresenter.run(NbPresenter.java:721)
    at org.openide.util.Mutex$1.run(Mutex.java:952)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Then there is one for cpp file:
    java.util.NoSuchElementException
    at org.openide.loaders.TemplateWizard$DefaultIterator.nextPanel(TemplateWizard.java:812)
    at org.openide.loaders.TemplateWizardIterImpl.nextPanel(TemplateWizardIterImpl.java:136)
    at org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:1106)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
    at java.awt.Component.processMouseEvent(Component.java:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1774)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
    at java.awt.Dialog$1.run(Dialog.java:515)
    at java.awt.Dialog.show(Dialog.java:536)
    at org.netbeans.core.NbPresenter.superShow(NbPresenter.java:690)
    at org.netbeans.core.NbPresenter.doShow(NbPresenter.java:733)
    at org.netbeans.core.NbPresenter.run(NbPresenter.java:721)
    at org.openide.util.Mutex$1.run(Mutex.java:952)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    About XEmacs: yes, the communication between IDE and
    XEmacs is not stable. It was a little bit improved in
    Sun Studio
    10, but not enough. We plan to improve it in next
    release. I'll
    try to create a test case according to your
    description. BTW,
    why there are two or more XEmacs windows? Usually
    there
    should be only one window with many buffers. I don't
    think
    Sun Studio IDE can manage several XEmacs windows.Why? Because it is a great help to be able to watch two different buffers/modules at the same time when writing source code. If there is only one window with many buffers, I have to either split window in two (Ctrl X 2) or continuously switch between two buffers, which is annoying.
    Thanks for the feedback.

  • Sun Studio 12 takes lot of time to startup

    Hi,
    When I try to use sunstudio 12 on a Solaris 10 U6 x86 box, it takes ages to open the UI window.
    The window kind of hung state with out any messges showing in it until it comes up with full screen.
    Debugging from sunstudio takes lot of time when we try step to the code.
    Is this a known issue?. Any workaround?.
    The Solaris system has 8GB RAM and plenty of disk space.
    Thanks

    Thank you for the report! No, it is not a known issue.
    I use Sun Studio IDE on Solaris 10 x86 system with 2 Gb memory.
    Its responsiveness is ok (though sometimes it parses my projects
    for 10-20 seconds, but it happens only 2-3 times per day).
    The "startup" time is about 20-30 seconds.
    Let's try to find out what is the problem on your system.
    Can you run "sunstudio" under "truss -d" and look at the log file?
    Here is the command:
    truss -d -a -e -f -o ss.tr  sunstudio  --userdir /tmp/newuserdir It will create a log file "ss.tr" in current directory. Open it in a text editor,
    and look for long actions. Probably there is something in your HOME
    directory, that causes these delays.
    If you don't see anything suspicious, let me know. I'll take a look at the
    log file (though it can be several Mb, so we have to find out how to send it).
    Thanks,
    Nik

  • Installing Sun Studio 12 on Ubuntu 8.04

    When I try to install Sun Studio 12 with the graphical installer, I get a message half was through that Java is not installed. In my case Sun's Java was already installed. I tell the Sun Studio installer to do the update and it finished what it was doing. After the install is done, I found that the Sun Studio executable is missing, so it looked like the installation did not work. What version of Java is Sun Studio expecting and does it need to be tied to a specific path? Is there a known method for installing Java for Sun Studio 12?
    After this I uninstalled Java and Netbeans and started the system prep tool, which correctly said I was missing netbeans and java. I had the system prep tool install netbeans successfully but I get this message when trying to install java:
    error: Failed dependencies:
    glibc >= 2.1.2-11 is needed by jdk-1.5.0_09-fcs.i586
    sh-utils >= 2.0-1 is needed by jdk-1.5.0_09-fcs.i586
    fileutils >= 4.0-8 is needed by jdk-1.5.0_09-fcs.i586
    gawk >= 3.0.4-1 is needed by jdk-1.5.0_09-fcs.i586
    textutils >= 2.0-2 is needed by jdk-1.5.0_09-fcs.i586
    /bin/sh is needed by jdk-1.5.0_09-fcs.i586
    Any suggestions?

    I could not find any log files with error information from Express or Sun Studio 12. Any ideas?Not yet :-) Can you try to build and debug a sample project? Does it show the same problem?
    I mean one of several sample projects, that are shipped with the Sun Studio IDE.
    Start "sunstudio", from main menu: "File->New Project", select Samples->C/C++/Fortran->Welcome
    Did you try to run compilers and other tools?
    Please, make sure they work. For example, run the following commands:
    cc -V
    CC -V
    f90 -V
    collect -V
    dbx -V
    dmake -v
    (Note: the last one is small "v")

  • Recommendation for new features in next Sun Studio releases

    Hello,
    I have started using the Sun Studio Express recently and as a feedback to your opening to receive proposals to new features in the next releases of the Sun Studio collection I would want to point some aspects of interest to the programmers in writing good software for embedded systems and not only.
    First of all, with regards to the subject of great interest to me in this moment, multicore/multiprocessor parallel programming, I would appreciate the following :
    - if the compiler would be extended with new directives to allow the programmer to measure the load of each core and/or processor that is available to him.
    - if the compiler would be extended with directives to allow the programmer to get the core ID on which a specific section of code is executed. As en example consider o multithreaded application and in the associated function for each thread read the core ID and function of this value perform specific actions.
    - if the compiler would be extended with directives to allow the programmer to get the ID of the processor in the system - supposing a specific system has many multicore processors. (I don't know if this is possible).
    - if the compiler would be extended with directives to allow the programmer to specify the core and/or processor on which it wants to be executed a specific process,thread,function,(maybe instruction).
    With these macros I think a lot of things can be exercised, one that I think in this moment is the posibility for the programmer to implement his own algorithm of load balancing for the cores and processors of his system.
    Another point I would recommend would be that the watch window in the Sun Studio IDE to permit the selection of the format in which the data to be displayed.As an example if I have a U32 variable to be able to select in the watch window the integer ,hexadecimal or binary format in which I would want to be displayed.
    Another useful thins that I sought at other IDEs would be a popup window or something similar to select how to see the source code: as a .c file , as an assembler code , or as a mixture of C and assemble.
    That's all for the moment, if I see something else I would post another message.
    Thank you,
    Steve.

    steveg wrote:
    First of all, with regards to the subject of great interest to me in this moment, multicore/multiprocessor parallel programming, I would appreciate the following :
    - if the compiler would be extended with new directives to allow the programmer to measure the load of each core and/or processor that is available to him.
    - if the compiler would be extended with directives to allow the programmer to get the core ID on which a specific section of code is executed. As en example consider o multithreaded application and in the associated function for each thread read the core ID and function of this value perform specific actions.
    - if the compiler would be extended with directives to allow the programmer to get the ID of the processor in the system - supposing a specific system has many multicore processors. (I don't know if this is possible).
    - if the compiler would be extended with directives to allow the programmer to specify the core and/or processor on which it wants to be executed a specific process,thread,function,(maybe instruction).
    With these macros I think a lot of things can be exercised, one that I think in this moment is the posibility for the programmer to implement his own algorithm of load balancing for the cores and processors of his system.
    These are OS functions, not compiler's. Solaris has a wide selection of ways and tools to assign processes and threads to cpus; processor_bind(2) is a function you can call and pbind(1M) is a tool you can use on a running app. There are more, just google for it.
    Another point I would recommend would be that the watch window in the Sun Studio IDE to permit the selection of the format in which the data to be displayed.As an example if I have a U32 variable to be able to select in the watch window the integer ,hexadecimal or binary format in which I would want to be displayed.
    Good point. I'll check if there already is an RFE (Request For Enhancement) filed and file one if it's not. Thanks for letting us know!
    Another useful thins that I sought at other IDEs would be a popup window or something similar to select how to see the source code: as a .c file , as an assembler code , or as a mixture of C and assemble.
    But there is disassembly window already. See screenshot here: http://developers.sun.ru/images/stories/sunstudio/images/sun_studio_dbx.png

  • How to change Makefile file name in sun studio for linux 11?

    Greetings,
    For historical reasons, our makefiles are called Make.bld
    Sun Studio refuses to accept these as makefiles.
    It'd be a big pain to modify our entire build system to take makefile as the name.
    Is there a way to instruct sun studio to accept a different filename for makefiles ?
    Thanks,
    Bill

    There is no supported way of getting the Sun Studio IDE (or NetBeans) to recognize
    Make.bld as a Makefile. However, the solution Nik pointed out with a .nbattrs file will
    work.
    Here is a complete file which, if copied to each directory containing a Make.bld file
    will work. However, if the directory already contains a .nbattrs file you should edit
    the existing one and add the <fileobject>...</fileobject> lines rather than overwriting
    the entire file.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE attributes PUBLIC "-//NetBeans//DTD DefaultAttributes 1.0//EN"
    " http://www.netbeans.org/dtds/attributes-1_0.dtd">
    <attributes version="1.0">
    <fileobject name="Make.bld">
    <attr name="MAKEFILE_TYPE" stringvalue="foo"/>
    </fileobject>
    </attributes>
    Note: I split the DOCTYPE line myself. It should be a single line in the file (although
    its probably OK if split, I didn't verify that so I'll suggest a single line).
    I should warn you that the next release of the Sun Studio IDE will no longer use
    .nbattrs files and you'll need a different solution. A preliminary version of the next
    release is currently available by downloading Sun Studio Express 3. The IDE is
    significantly better than the current one! You also get a lot of the same features
    by downloading NetBeans 5.5 with the C/C++ Development Pack.
    Gordon

  • Opening performance analyser in Sun Studio 12

    I want to know how to open performance analyzer in sun studio 12?

    Yes, Maxim is right, you can start Performance Analyzer standalone tool:
    # analyzer
    Or you can use it from Sun Studio IDE: main menu "Advanced -> Advanced Profiling -> Start".
    It will run your "main" project under "collect", and show the results.
    Thanks,
    Nik

  • Control Sun Studio 12 log files

    Hi everybody. I'm new using the Sun Studio IDE. I'm not a developer, i'm a system administrator.
    What I would like to know is how to control the size of the Sun Studio log file. For example, I have some users with the following files:
    ~/.sunstudio/12.0-SunOS-sparc/var/log
    ls -lah
    total 5227472
    drwxrwxr-x 2 username groupname 4.0K Mar 4 11:52 .
    drwxrwxr-x 5 username groupname 4.0K Mar 4 10:38 ..
    -rw-rw-r-- 1 username groupname 283M Mar 4 11:55 messages.log
    -rw-rw-r-- 1 username groupname 1.2G Mar 4 11:52 messages.log.1
    -rw-rw-r-- 1 username groupname 1002M Mar 4 10:16 messages.log.2
    tail messages.log
    at org.netbeans.modules.cnd.modelimpl.uid.KeyBasedUID.getObject(KeyBasedUID.java:37)
    at org.netbeans.modules.cnd.modelimpl.uid.UIDCsmConverter.UIDtoNamespace(UIDCsmConverter.java:81)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase._getGlobalNamespace(ProjectBase.java:1155)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getGlobalNamespace(ProjectBase.java:154)
    at org.netbeans.modules.cnd.modelimpl.csm.core.AstRenderer.render(AstRenderer.java:48)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.render(FileImpl.java:295)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl._parse(FileImpl.java:470)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.parse(FileImpl.java:437)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.ensureParsed(FileImpl.java:239)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:66)
    Why these files are so big? How can I control the size of the files? When the rotation is done? Can be compressed after rotation like "logrotate"?
    Thanks in advance.

    Hi everybody. I'm new using the Sun Studio IDE. I'm not a developer, i'm a system administrator.
    What I would like to know is how to control the size of the Sun Studio log file. For example, I have some users with the following files:
    ~/.sunstudio/12.0-SunOS-sparc/var/log
    ls -lah
    total 5227472
    drwxrwxr-x 2 username groupname 4.0K Mar 4 11:52 .
    drwxrwxr-x 5 username groupname 4.0K Mar 4 10:38 ..
    -rw-rw-r-- 1 username groupname 283M Mar 4 11:55 messages.log
    -rw-rw-r-- 1 username groupname 1.2G Mar 4 11:52 messages.log.1
    -rw-rw-r-- 1 username groupname 1002M Mar 4 10:16 messages.log.2
    tail messages.log
    at org.netbeans.modules.cnd.modelimpl.uid.KeyBasedUID.getObject(KeyBasedUID.java:37)
    at org.netbeans.modules.cnd.modelimpl.uid.UIDCsmConverter.UIDtoNamespace(UIDCsmConverter.java:81)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase._getGlobalNamespace(ProjectBase.java:1155)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getGlobalNamespace(ProjectBase.java:154)
    at org.netbeans.modules.cnd.modelimpl.csm.core.AstRenderer.render(AstRenderer.java:48)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.render(FileImpl.java:295)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl._parse(FileImpl.java:470)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.parse(FileImpl.java:437)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.ensureParsed(FileImpl.java:239)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:66)
    Why these files are so big? How can I control the size of the files? When the rotation is done? Can be compressed after rotation like "logrotate"?
    Thanks in advance.

  • Problems with sun studio 12 in suse linux 11

    Hi.
    I installed Sun Studio 12 suse linux with no problems. However, the debugging modules (DBX) are not working any more. When I started Sun Studio, it gave a message about modules that could not be loaded in tha moment. I did not pay attention. But I noticed that all debugging options were disabled.
    Using the module manager, I saw the DBX module was not checked, and I could not change it. I was marked with a red X. So I thought to reinstall the application. However, the uninstall utility doesn't work either.
    According with the documentation, running ./uninstaller does it, but I get the following error message instead
    Exception in thread "main" java.lang.NoClassDefFoundError: uninstall_Sun_Studio_12/class
    Caused by: java.lang.ClassNotFoundException: uninstall_Sun_Studio_12.class
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    I tried to uninstall manually, and then execute installer, by using first the software manager in linux and deleting the producregistry file manually. It worked because I executed the installer. However, in Sun Studio IDE, debugging options are still not available despite I "reinstalled" the application. I checked the log files and they say the file uninstall_Sun_Studio_12.class could not be written.
    So my questions are:
    1. Is there any other way to repair Sun Studio? What could be the possible for this module to stop working?
    2. Does anyone have an idea of why the installer cannot write the uninstaller class?
    I found that perhaps problems regarding Java / Netbeans versions could be the problem, but the ones I have installed are those packages that were installed along with Sun Studio, and both are valid.
    Thank you very much.

    Perhaps you can simply delete the Sun Studio 12 installation tree, because it will not work on SUSE Linux 11.
    This OS is not supported, so any problems you see with SS12 on SUSE 11 will not be fixed.
    But we have a newer version, that should work better.
    You can try to download and install Sun Studio Express 2008/11 (extract pre-installed image from tar.bz2 file).
    Here is a pointer to the web page:
    http://developers.sun.com/sunstudio/downloads/express
    All you need is to provide a email address, and press "Download Now" button.
    You will see a page, that gives you 2 options to download Sun Studio Express 2008/11.
    Use "Option 2": Download Tarfile Installer
    Thanks,
    Nik

  • Sun studio and VCS integration?

    Hi,
    I can't find any information about what VCS, Sun studio can work with, I know netbeans provide CVS, SVN and Mercurial support, is it the same for Sun studio? Is there a documentation page about that, is there plugins, will netbeans plugins work with sun studio ?
    Thanx

    Yes, you are right, Netbeans provides CVS, SVN and Mercurial support (and probably
    some other VCS, like ClearCase), and Sun Studio IDE provides the same support.
    The Netbeans plugins will work with Sun Studio IDE.
    Thanks,
    Nik

Maybe you are looking for