Oracle Solaris Studio 12.3 IDE 2011 12 E26461-01
2 7 8 9 9 Oracle 10 12 14 21 26 27 29 31 32 33 Oracle Solaris Studio IDE makefile C C++ Fortran makefile IDE Solaris Linux C/C++/Fortran Oracle IDE "Project Properties" IDE makefile makefile 1. "File" > "New Project" (Ctrl+Shift+N) "New Project" 2. "C/C++/Fortran" 3. "C/C++/Fortran Application" C/C++/Fortran "Next" Oracle Solaris Studio 12.3 IDE 2
4. C/C++/Fortran 5. "Finish" "Important Files" makefile 1. "Files" 2. "Projects" Oracle Solaris Studio 12.3 IDE 3
1. CppApplication_1 "New Logical Folder" 2. "Rename" 1. "Source Files" "New" > "C Main File" C 2. "Name and Location" "File Name" newmain 3. "Finish" newmain.c "Source Files" main.cpp "Remove From Project" 1. "Header Files" "New" > "C Header File" C 2. "Name and Location" "File Name" newfile 3. "Finish" newfile.h "Header Files" "Source Files" "Add Existing Item" "Select Item" "Source Files" "Add Existing Items from Folders" "Add Folders" "New" "Name and Location" Oracle Solaris Studio 12.3 IDE 4
"Debug" "Release" "Debug" "Release" "Project Properties" "Project Properties" "Application" "Properties" "Project Properties" "General" "Build" "Run" "Debug" "Project Properties" makefile 1. "Project Properties" "Manage Configurations" 2. "Configurations" "Release" "Copy" "Rename" 3. "Rename" "PerformanceRelease" "OK" 4. "Configurations" "OK" 5. "Project Properties" "C Compiler" C "Configuration" "PerformanceRelease" 6. "Development Mode" "Release" "PerformanceRelease" "OK" Oracle Solaris Studio 12.3 IDE 5
1. newmain.c "Properties" 2. "Categories" "General" 3. "C Compiler" C 4. "Project Properties" "Projects" IDE "Projects" IDE "Set as Main Project" IDE 1. "Build" "Output" 2. "Debug" "PerformanceRelease" "PerformanceRelease" 3. "Build" "Output" "Run" > "Batch Build Main Project" "Batch Build" newmain.c "Compile File" Oracle Solaris Studio 12.3 IDE 6
"C/C++/Fortran Project From Existing Code" C/C++/Fortran Arguments Arguments_1 1. "File" > "New Project" 2. "Samples" 3. "C/C++" Arguments "Next" "Finish" 4. Arguments_1 "Build" 5. Arguments_1 "Properties" 6. "Project Properties" "Run" 7. "Run Command" 1111 2222 3333 "OK" 8. "Run" > "Run Main Project" "Run Monitor" "Project Properties" "Profile" Oracle Solaris Studio 12.3 IDE 7
"C/C++/Fortran Project From Existing Sources" C/C++/Fortran IDE makefile 1. "File" > "New Project" 2. "C/C++/Fortran" 3. "C/C++/Fortran Project From Existing Sources" C/C++/Fortran "Next" 4. "New Project" "Select mode" "Browse" "Select Project Folder" "Select" 5. "Automatic" "Finish" 6. "Projects" IDE makefile "Clean" "Build" "Projects" "Build" "Clean and Build" Oracle Solaris Studio 12.3 IDE 8
"C/C++/Fortran project from a binary file" C/C++/Fortran 1. "File" > "New Project" 2. "C/C++/Fortran" 3. "C/C++/Fortran Project from Binary File" C/C++/Fortran "Next" 4. "New Project" "Select Binary File" "Browse" "Select Binary File" 5. "Next" 6. "Project Name and Location" "Finish" Oracle Oracle Oracle Solaris Studio Oracle Instant Client 1. "File" > "New Project" 2. "New Project" "C/C++/Fortran" "C/C++ Database Application" C/C++ "Next" 3. "Project Name and Location" "Next" Oracle Solaris Studio 12.3 IDE 9
4. "Master table" "Database Connection" jdbc:derby://localhost:1527/sample IDE "Database Table" "Available Columns" "Columns to Include" 5. "Finish" IDE UNIX "Remote development" IDE "Options" "Build Tools" 1. "Tools" > "Options" "C/C++" 2. "Options" "Build Tools" "Edit" 3. "Build Hosts Manager" "Add" 4. "New Remote Build Host" "Select Host" "Hostname" "Network neighborhood" "Next" Oracle Solaris Studio 12.3 IDE 10
5. "Setup Host" "Login" "Next" 6. "Summary" "Finish" Oracle Solaris Studio 12.3 IDE 11
7. "Build Hosts Manager" "Build Hosts" "OK" 8. "Services" IDE "C/C++ Build Hosts" C/C++ "Properties" "Host Properties" 9. "Services" "C/C++ Build Hosts" C/C++ "Set as Default" NFS Samba "Project Properties" "Build" "File" > "Open Remote C/C++ Project" C/C++ tar zip Solaris SVR4 RPM Debian 1. Arguments_1 "Properties" 2. "Project Properties" "Packaging" 3. "Solaris SVR4" 4. 5. "Packaging Files Browse" "Packaging Files" SVR4 "Info" Oracle Solaris Studio 12.3 IDE 12
6. "Files" "Files" "File or Directory Path in Package" "Files" "OK" Oracle Solaris Studio 12.3 IDE 13
7. 8. "OK" 9. "More Build Commands" > "Build Package" Oracle Solaris Studio IDE Quote 1. "File" > "New Project" 2. "Samples" "C/C++" Quote "Next" "Finish" "Options" 1. "Tools" > "Options" 2. "Editor" 3. "Formatting" 4. "Language" 5. "Style" Oracle Solaris Studio 12.3 IDE 14
6. C C++ 1. Quote_1 "Source Files" cpu.cc 2. 3. {...} 1. "Tools" > "Options" 2. "C/C++" 3. "Highlighting" 4. 5. "OK" 6. Quote_1 customer.cc 7. Customer 8. Customer Oracle Solaris Studio 12.3 IDE 15
9. customer.h Oracle Solaris Studio 12.3 IDE 16
IDE C C++ 1. Quote_1 quote.cc 2. quote.cc C Ctrl + Cpu Customer "No documentation found because the project source code does not include documentation" 3. Ctrl + 4. calloc() IDE 5. Customer Enter 6. andrew; Customer a Ctrl + a Oracle Solaris Studio 12.3 IDE 17
7. andrew Customer 8. 1. Quote_1 quote.cc 40 #include "m 2. odule.h 3. Oracle Solaris Studio 12.3 IDE 18
IDE Doxygen 1. quote.cc int readnumberof(const char* item, int min, int max) { 2. Enter readnumberof Doxygen 3. @param 4. readnumberof 5. readnumberof Ctrl + Shift + 6. readnumberof 7. "Source" > "Show documentation" Oracle Solaris Studio 12.3 IDE 19
C C++ Fortran Tab Quote_1 quote.cc uns Tab uns unsigned iff Tab iff if (exp) {} ifs Tab ifs if (exp) {} else {} fori Tab fori for (int i=0; i< size; i++) { Object size = array[i] ;} 1. "Tools" > "Options" 2. "Options" "C/C++" "Code Templates" 3. "Language" C C++ 1. Quote_1 module.cc 116 { Return 2. enum state { Return Oracle Solaris Studio 12.3 IDE 20
3. invalid=0, success=1 4. }; if ( 5. v==null i 6. IDE Quote_1 "Classes" "Classes" 1. "Classes" "Classes" 2. Quote_1 3. Customer 4. name customer.h "Navigator" "Navigator" "Navigator" "Window" > "Navigating" > "Navigator" 1. "Editor" quote.cc 2. "Navigator" Oracle Solaris Studio 12.3 IDE 21
3. "Navigator" "Editor" 4. "Navigator" 5. "Navigator" "Help" > "Help Contents" IDE "Help" "Search" "Find" navigator icons "Usages" 1. customer.cc 42 Customer "Find Usages" 2. "Find Usages" "Find" 3. "Usages" Customer "Call Graph" 1. quote.cc main "Show Call Graph" 2. "Call Graph" main Oracle Solaris Studio 12.3 IDE 22
"Call Graph" 3. end1 end1 4. end1 endl end1 5. 1. Quote_1 cpu.cc Ctrl 37 ComputeSupportMetric Oracle Solaris Studio 12.3 IDE 23
2. 3. Ctrl cpu.h 4. cpu.cc 5. 6. module.h 7. Oracle Solaris Studio 12.3 IDE 24
8. Cpu::ComputerSupportMetric cpu.h "Include Hierarchy" 1. Quote_1 module.cc 2. #include "module.h" "Navigate" > "View Includes Hierarchy" 3. "Hierarchy" "Type Hierarchy" 1. Quote_1 module.h 2. Module "Navigate" > "View Type Hierarchy" 3. "Hierarchy" Module Oracle Solaris Studio 12.3 IDE 25
1. http://www.oracle.com/ technetwork/server-storage/solarisstudio/downloads/solaris-studio-samples-1408618.html Oracle Solaris Studio 12.3 Sample Applications Oracle Solaris Studio 12.3 Web zip memorychecks SolarisStudioSampleApplications CodeAnalyzer 2. memorychecks 3. "Properties" "Project Properties" "Run" "Run Command" Customer.db "OK" 4. 5. a. memorychecks b. "Profile Project" "Profile Project to find Memory Access Errors" c. "Select Analysis Type" "All Memory Access Errors" "Overhead" "High" "Moderate" d. "Start" 6. "Run Memory Profile" "OK" Oracle Solaris Studio 12.3 IDE 26
7. "Memory Analysis" "Memory Analysis" 8. "Memory Analysis Tool" 1. Quote_1 quote.cc 2. "Editor" 171 (response = readchar("enter disk module type: (S for single disks, R for RAID; Q - exit)", S );) 3. 4. "Window" > "Debugging" > "Breakpoints" "Breakpoints" Oracle Solaris Studio 12.3 IDE 27
1. "Debug" > "New Breakpoint" (Ctrl+Shift+F8) "New Breakpoint" 2. "Breakpoint Type" "Function" 3. "Function" Customer::GetDiscount "OK" 4. "Breakpoints" Oracle Solaris Studio 12.3 IDE 28
IDE dbx IDE "Debugger Console" 1. "Debug" Quote_1 "Variables" "Debugger Console" 2. "Window" > "Debugging" > "Sessions" "Sessions" 1. Quote_1 "Output" 2. Enter customer name: 3. "Breakpoints" 4. customer.cc GetDiscount Oracle Solaris Studio 12.3 IDE 29
5. "Call Stack" 6. "Variables" 7. "Continue" GetDiscount "Output" 8. "Variables" Oracle Solaris Studio 12.3 IDE 30
9. "Call Stack" 10. "Continue" "Output" "Sessions" "Finish" 1. Quote_1 "Debug" 2. "Output" 3. GetDiscount "Window" > "Debugging" > "Disassembly" "Disassembly" "Editor" 4. "Window" > "Debugging" > "Registers" "Registers" Oracle Solaris Studio 12.3 IDE 31
5. "Window" > "Debugging" > "Memory" "Memory" 1. "File" > "New Project" 2. "New Project" "Samples" "C/C++" 3. "Freeway Simulator" Freeway "Next" "Finish" 4. Freeway_1 "Run" Freeway Freeway GUI "Actions" > "Start" 5. IDE "Debug" > "Attach Debugger" Oracle Solaris Studio 12.3 IDE 32
6. "Attach" "Filter" Freeway 7. Freeway 8. "OK" 9. Freeway 10. "Continue" Freeway "Pause" Freeway 11. "Continue" "Finish Debugger Session" Freeway Freeway GUI "File" > "Exit" 1. "Debug" > "Debug core file" 2. "Debug core file" "Select Core File" "Browse" Oracle Solaris Studio 12.3 IDE 33
3. "Executable" "Browse" "Executable" 4. "Project" <no project> <create new project> 5. "Debug" Oracle Solaris Studio 12.3 dbxtool Oracle Solaris Studio 12.3 IDE 34
2011 U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are commercial computer software pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs. No other rights are granted to the U.S. Government. Oracle Corporation Oracle Java Oracle / Intel Intel Xeon Intel Corporation SPARC SPARC International, Inc AMD Opteron AMD AMD Opteron Advanced Micro Devices UNIX The Open Group Oracle Corporation Oracle Corporation E26461 Oracle Corporation 500 Oracle Parkway, Redwood City, CA 94065 U.S.A.