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

Posted on 2005-05-05
Medium Priority
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
  • 2
  • 2
LVL 34

Expert Comment

ID: 13936908
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

ID: 13943924
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

ID: 13957842

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

PsiCop earned 1000 total points
ID: 14011292
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes a user will call me frantically, explaining that something has gone wrong and they have tried everything (read - they have messed it up more and now need someone to clean up) and it still does no good, can I help them?!  Usually the standa…
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Suggested Courses

809 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