Oracle Solaris Studio 12.2 IDE 2010 9
2 8 9 10 11 13 20 26 28 30 32 33 Oracle Solaris Studio makefile C C++ Fortran IDE Solaris Linux C/C++/Fortran IDE "Project Properties" IDE makefile 1. "File" > "New Project" "New Project" 2. "C/C++" 3. "C/C++/Fortran Application" C/C++/Fortran "Next" Oracle Solaris Studio 12.2 IDE 2
4. C/C++/Fortran 5. "Finish" "Important Files" makefile 1. "Files" Oracle Solaris Studio 12.2 IDE 3
2. "Projects" 1. CppApplication_1 "New Logical Folder" 2. "Rename" 1. "Source Files" "New" > "Main C File" C 2. "Name and Location" "File Name" newfile 3. "Finish" newfile.c "Source Files" Oracle Solaris Studio 12.2 IDE 4
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" "Debug" "Release" "Debug" "Release" "Project Properties" "Project Properties" "Application" "Properties" Oracle Solaris Studio 12.2 IDE 5
"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" 1. newfile.c "Properties" 2. "Categories" "General" Oracle Solaris Studio 12.2 IDE 6
3. "C Compiler" C 4. "Project Properties" "Projects" "Projects" IDE "Set as Main Project" IDE 1. "Build" "Output" 2. "Debug" "PerformanceRelease" "PerformanceRelease" 3. "Build" "Output" "Run" > "Batch Build Main Project" "Batch Build" newfile.c "Compile File" "C/C++/Fortran Project From Existing Code" C/C++/Fortran Oracle Solaris Studio 12.2 IDE 7
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. "Arguments" 1111 2222 3333 "OK" 8. "Run" > "Run Main Project" "Run Monitor" "Project Properties" "Profile" Oracle Solaris Studio 12.2 IDE 8
"C/C++/Fortran Project From Existing Code" C/C++/Fortran IDE makefile 1. "File" > "New Project" 2. "C/C++" 3. "C/C++/Fortran Project From Existing Code" 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" Oracle Solaris Studio 12.2 IDE 9
"Clean and Build" IDE UNIX "Options" "Build Tools" 1. "Tools" > "Options" 2. "Options" "Build Tools" "Edit" 3. "Development Host Manager" "Add" 4. "New Remote Development Host" "Select Host" "Hostname" "Network neighborhood" "Next" 5. "Setup Host" "Login" "Next" Oracle Solaris Studio 12.2 IDE 10
6. "Summary" "Finish" 7. "Development Hosts Manage" "Development Hosts" "OK" NFS Samba "Project Properties" "Build" 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.2 IDE 11
6. "Files" "Files" "File or Directory Path in Package" "Files" "OK" Oracle Solaris Studio 12.2 IDE 12
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.2 IDE 13
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 Oracle Solaris Studio 12.2 IDE 14
7. Customer 8. Customer 9. customer.h Oracle Solaris Studio 12.2 IDE 15
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 + Oracle Solaris Studio 12.2 IDE 16
4. calloc() IDE 5. Customer Enter 6. andrew; Customer a Ctrl + a Oracle Solaris Studio 12.2 IDE 17
7. andrew Customer 8. IDE Doxygen 1. quote.cc int readnumberof(const char* item, int min, int max) { 2. Enter readnumberof Doxygen 3. @param 4. readnumberof Oracle Solaris Studio 12.2 IDE 18
5. readnumberof Ctrl + Shift + 6. readnumberof 7. "Source" > "Show documentation" 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" Oracle Solaris Studio 12.2 IDE 19
C C++ 1. Quote_1 module.cc 116 { Return 2. enum state { Return 3. invalid=0, success=1 4. }; if ( 5. v==null i 6. IDE Quote_1 "Classes" "Classes" 1. "Classes" "Classes" 2. Quote_1 Oracle Solaris Studio 12.2 IDE 20
3. Customer 4. name customer.h "Navigator" "Navigator" "Navigator" "Window" > "Navigating" > "Navigator" 1. "Editor" quote.cc 2. "Navigator" Oracle Solaris Studio 12.2 IDE 21
3. "Navigator" "Editor" 4. "Navigator" 5. "Navigator" "Help" > "Help Contents" IDE "Help" "Search" "Find" "Usages" 1. customer.cc 42 Customer "Find Usages" 2. "Find Usages" "Find" 3. "Usages" Customer "Call Graph" 1. quote.cc main "Show Call Graph" Oracle Solaris Studio 12.2 IDE 22
2. "Call Graph" main "Call Graph" 3. end1 end1 4. end1 endl end1 5. Oracle Solaris Studio 12.2 IDE 23
1. Quote_1 cpu.cc Ctrl 37 ComputeSupportMetric 2. 3. Ctrl cpu.h 4. cpu.cc 5. Oracle Solaris Studio 12.2 IDE 24
6. module.h 7. 8. Cpu::ComputerSupportMetric cpu.h "Include Hierarchy" 1. Quote_1 module.cc 2. #include "module.h" "Navigate" > "View Includes Hierarchy" 3. "Hierarchy" Oracle Solaris Studio 12.2 IDE 25
"Type Hierarchy" 1. Quote_1 module.h 2. Module "Navigate" > "View Type Hierarchy" 3. "Hierarchy" Module 1. Quote_1 quote.cc 2. "Editor" 173 (response = readchar("enter disk module type: (S for single disks, R for RAID; Q - exit)", S );) Oracle Solaris Studio 12.2 IDE 26
3. 4. "Window" > "Debugging" > "Breakpoints" "Breakpoints" 1. "Debug" > "New Breakpoint" (Ctrl+Shift+F8) "New Breakpoint" 2. "Breakpoint Type" "Function" 3. "Function" Customer::GetDiscount "OK" Oracle Solaris Studio 12.2 IDE 27
4. "Breakpoints" IDE dbx IDE "Output" 1. "Debug" Quote_1 "Debugging" "Variables" "Watches" "Call Stack" "Threads" "Process I/O" I/O "Dbx Console" Dbx 2. "Window" > "Debugging" > "Sessions" "Sessions" Oracle Solaris Studio 12.2 IDE 28
1. Quote_1 "Process I/O" I/O 2. Enter customer name: 3. "Breakpoints" 4. customer.cc GetDiscount 5. "Call Stack" 6. "Variables" Oracle Solaris Studio 12.2 IDE 29
7. "Continue" GetDiscount "Process I/O" I/O 8. "Variables" 9. "Call Stack" 10. "Continue" "Process I/O" I/O "Sessions" "Finish" 1. Quote_1 "Debug" 2. "Process I/O" I/O 3. GetDiscount "Window" > "Debugging" > "Disassembly" "Disassembly" "Editor" Oracle Solaris Studio 12.2 IDE 30
4. "Window" > "Debugging" > "Registers" "Registers" 5. "Window" > "Debugging" > "Memory" "Memory" Oracle Solaris Studio 12.2 IDE 31
1. "File" > "New Project" 2. "New Project" "Samples" "C/C++" 3. "Freeway Simulator" Freeway "Next" "Finish" 4. Freeway_1 "Run" "Freeway" 5. "Debug" > "Attach Debugger" Oracle Solaris Studio 12.2 IDE 32
6. "Attach" "Filter" Freeway 7. Freeway 8. "OK" 9. Freeway 1. "Debug" > "Debug core file" 2. "Debug core file" "Select Core File" "Browse" Oracle Solaris Studio 12.2 IDE 33
3. "Select Executable" "Executable" "Browse" "Executable" 4. "Project" <no project> <create new project> 5. "Debug" Oracle Solaris Studio 12.2 dbxtool Oracle Solaris Studio 12.2 IDE 34
2010 U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations.as such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software License (December 2007).Oracle America, Inc., 500 Oracle Parkway, Redwood City, CA 94065. Oracle Corporation Oracle Java Oracle / AMD Opteron AMD AMD Opteron Advanced Micro Devices Intel Intel Xeon Intel Corporation SPARC SPARC International, Inc UNIX X/Open Company, Ltd Oracle Corporation Oracle Corporation 821-2515 Oracle Corporation 500 Oracle Parkway, Redwood City, CA 94065 U.S.A.