Solaris SPARC to Solaris x86 Porting Guide
Solaris SPARC to Solaris x86
Porting Guide
Table of contents
Overview............................................................................................................................................ 3
Solaris and HP................................................................................................................................. 3
Solaris x86 benefits.......................................................................................................................... 3
Migration ........................................................................................................................................... 3
Prerequisites .................................................................................................................................... 3
Issues and recommendations ............................................................................................................. 3
Custom code migration ........................................................................................................................ 4
Processor architectural difference and porting issues ............................................................................ 4
Porting issues based on endianness................................................................................................ 4
C and C++ compiler difference between SPARC vs x86 Solaris ............................................................ 9
Sun Studio developer tools ............................................................................................................ 9
Compiler options for SPARC platform not used on x86 platform....................................................... 10
Compiler options for x86 platforms not used on SPARC platform ..................................................... 13
Compiler options used on both Solaris versions but with different implications ................................... 14
Using Solaris developer tools........................................................................................................... 16
Kernel-Level debugging ............................................................................................................... 16
Using the Sun StudioTools ........................................................................................................... 16
Using the NetBeans IDE .............................................................................................................. 17
Linker and loader overview ............................................................................................................. 17
Link-editor.................................................................................................................................. 17
Runtime linker ............................................................................................................................ 17
Shared objects........................................................................................................................... 17
Object files................................................................................................................................18
32–bit Environments and 64–bit environments ............................................................................... 18
Support tools ............................................................................................................................. 19
Data migration .............................................................................................................................. 19
Backing up the data on stoarge: .................................................................................................. 19
Configuring storage on Solaris x86 servers ................................................................................... 19
Creating target disk layout .......................................................................................................... 19
Migrating data to target machine:................................................................................................ 19
Performance benchmarking............................................................................................................. 20
Programming to specific hardware and configurations ....................................................................... 20
Known Solaris compatible hardware ............................................................................................ 20
Testing x86 hardware for Solaris compatibility .............................................................................. 20
Developing in the x86 assembly language .................................................................................... 20
Developing 64–bit applications for the Solaris OS ......................................................................... 20
Platform infrastructure......................................................................................................................... 21
I/O architecture............................................................................................................................. 21
Drivers and hardware supported...................................................................................................... 21