Issues with porting sparc Solaris 8 application to intel Solaris 10.

Posted on 2005-05-05
Last Modified: 2013-12-05
We have an application developed for Sparc Solaris 8. We are thinking of expanding its domain on Intel processor too. I am working towards evaluating the feasibility of porting this application on Intel Solaris 10 (especially for HP DL 385 and AMD). Please let me know if it’s worth the effort. Are there any know hurdles, pitfalls or issue for this. Will appreciate immediate response.
Question by:shuklasunil
    LVL 34

    Expert Comment

    From what I know of the Solaris architecture after kicking around in it for about 10 years, I don't think this will be very difficult. Of Solaris itself, only about 5% of the code is hardware/CPU-architecture-dependent. The rest is hardware/CPU-architecture-independent. Unless the application in question is making some deep system calls, and hitting that 5% of the OS, I'm not aware of any particular roadblocks from the OS.

    This is, of course, affected by how your application is coded/architected. If it likes to do a lot of Ring 0 work, if it likes to talk to hardware directly, then porting will be hard/very difficult. But if it lives in Ring 3 and talks to the OS as opposed to the hardware, then my estimation is it should be fairly easy.

    Disclaimer: IANAPAM (I Am Not A Programmer Any More)

    Author Comment

    Thanks for you response. So what are guidelines you suggest porting my application from Sparc Solaris to Intel Solaris and are there known issues to be taken into consideration? I tried searching this on net but failed to find good pointers for porting Sparc Solaris application to Intel Solaris. What I am really worried about is something like endianness (and other such issue which I might not even be aware of), which is different on Sparc Solaris then on Intel Solaris. What effect does endianness has on something like socket programming. Since endianness of bytes received from network on Sparc Solaris doesn’t has to be changed to use, but endianness of the bytes received from network on Intel Solaris has to be changed. Really appreciate a quick response on this.

    Author Comment


    How do I find if my code is doing lot of Ring 0/hardware/deep system calls. I am new to Solaris and am not familiar with the calls. Can you provide something like list of calls - & we could simply grep -r through the code.

    LVL 34

    Accepted Solution

    I know you're in a hurry - sorry for my tardy response.

    Unfortunately, I'm not a programmer. We came across the 5% figure a few years ago when we were investigating *NIX vs. NT for a large data warehousing project. We went *NIX (Solaris, specifically). But my experience is mainly as a Solaris admin - my "programming" is limited to hacking very minor code mods to end-user apps.

    I would think that unless your application is a device-driver, it probably doesn't directly call anything "deep" enuf to be an issue.

    Your concern for endianess is valid, but the compiler should generally take care of that, I would think.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap ( Version 1.2 2.      Jpcap( Version 0.6 Prerequisite: 1.      GCC …
    Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now