473,396 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

64bit porting issues on sparc solaris using C++ 5.8 compiler

Hi,

We have a complete succsssfully working product on 32bit sparc solaris machine for which compiler used is CC 5.8
Now we are migarting our product from 32 bit to 64bit sparc solaris machine.
While porting we need 64 bit compiler issues for our application product which is wriiten in completely C++.
We tried with -xarch=v9 and -xport64=full compiler options to find out 64bit porting problems. But we did not find any issues for our product.

Please let us know any technique to get these porting issues while migrating from 32bit to 64bit.

Thanks
Mar 8 '07 #1
5 2996
sicarie
4,677 Expert Mod 4TB
Hi,

We have a complete succsssfully working product on 32bit sparc solaris machine for which compiler used is CC 5.8
Now we are migarting our product from 32 bit to 64bit sparc solaris machine.
While porting we need 64 bit compiler issues for our application product which is wriiten in completely C++.
We tried with -xarch=v9 and -xport64=full compiler options to find out 64bit porting problems. But we did not find any issues for our product.

Please let us know any technique to get these porting issues while migrating from 32bit to 64bit.

Thanks
Did you get an error message? Are you recompiling the source on a 64 bit machine?
Mar 8 '07 #2
AdrianH
1,251 Expert 1GB
Hi,

We have a complete succsssfully working product on 32bit sparc solaris machine for which compiler used is CC 5.8
Now we are migarting our product from 32 bit to 64bit sparc solaris machine.
While porting we need 64 bit compiler issues for our application product which is wriiten in completely C++.
We tried with -xarch=v9 and -xport64=full compiler options to find out 64bit porting problems. But we did not find any issues for our product.

Please let us know any technique to get these porting issues while migrating from 32bit to 64bit.

Thanks
The only possible porting problems I could see might be in persistant storage. Even then I don't think that would be the case, unless the endianess has changed and you are storing information in a binary format. But that is not a 32-64bit port issue, that is an endian issue.

I think that C/C++ have come a long way in porting issues. They usually don't change the interface in such a way that makes it break older software, unless it is deemed unsafe. (though the char * a="hi"; one still bugs me allowing someone to do a[1]='o'; later on which won't be caught until runtime)

So maybe there are no issues like you said.


Adrian
Mar 8 '07 #3
Did you get an error message? Are you recompiling the source on a 64 bit machine?
Hello,

Thanks for your quick response.
We are recompiling the source on 32bit machine with options -xarch=v9 and -xport64=full to get porting warnings. We are not getting any error messages , The source files are compiled perfectly without any issues. Even the 64bit COFF format object files(*.o) files are created perfectly.
So we are not understanding whether there are any porting issues in our code or not.
Can we use FlexLint software to find out porting issues now at this situation?
Please tells us how to proceed now.

Thanks
Shobha
Mar 9 '07 #4
The only possible porting problems I could see might be in persistant storage. Even then I don't think that would be the case, unless the endianess has changed and you are storing information in a binary format. But that is not a 32-64bit port issue, that is an endian issue.

I think that C/C++ have come a long way in porting issues. They usually don't change the interface in such a way that makes it break older software, unless it is deemed unsafe. (though the char * a="hi"; one still bugs me allowing someone to do a[1]='o'; later on which won't be caught until runtime)

So maybe there are no issues like you said.


Adrian
Thanks or quick response.
Do you think there are no porting issues in our C++ code?
Can we move further thinking that there are no porting issues?

Thanks
Shobha
Mar 9 '07 #5
AdrianH
1,251 Expert 1GB
Thanks or quick response.
Do you think there are no porting issues in our C++ code?
Can we move further thinking that there are no porting issues?

Thanks
Shobha
Sorry for the late reply. I've been away.

If there are no porting warnings, I would assume that means there is nothing in your code that would present a problem. That said, have you tried to run the app? Does it work?

One potential issue would be if you assigned a size_t to an int or used a int in place of a size_t. If size_t was given a type of unsigned long long (64bit number) then:
  • The former example would probably give you a warning saying that you are truncating the value.
  • The latter example would go on without issue, but you will not be able to use a library to its fullest as you will be passing a subset of the potential numbers that it could be passed.

Hope this helps.


Adrian
Mar 18 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Tom Loredo | last post by:
Hi folks- I'm about to move from a Solaris 8/SPARC environment to a Dell running RedHat 9. Are there any issues I need to be aware of in bringing my Python code over (mostly scientific...
7
by: Sonny | last post by:
I need to port a library that is written entirely in C to C++. The library is supported on quite a few platforms (windows, Solaris, Linux, AIX, HP-UX, OSX, etc...) and there's quite an existing...
3
by: Christian McArdle | last post by:
REQUEST FOR DISCUSSION (RFD) unmoderated group comp.os.ms-windows.programmer.64bit This is a formal Request For Discussion (RFD) to create comp.os.ms-windows.programmer.64bit as an unmoderated...
0
by: Ganesh Tiwari | last post by:
i want to write a program, which works much like ldd command, which goes throgh c/c++ binary on solaris/SPARC and check whether it is possible to port it on to linux/intel. How do i do this? what...
31
by: JS | last post by:
We have the same floating point intensive C++ program that runs on Windows on Intel chip and on Sun Solaris on SPARC chips. The program reads the exactly the same input files on the two platforms....
23
by: OzBob | last post by:
I am developing some basic string / file manipulation C progams at home (Sparcstation running Solaris 9 and gcc) for my work environment (PA-RISC running HP-UX 11.11 and c99 compatible compiler)....
4
by: Martijn de Munnik | last post by:
Hi, I want to compile python on my solaris 10 system (amd 64 bit). I did the following: ../configure --prefix=/opt/64/python make which resulted in this error:
19
by: llothar | last post by:
I must say i didn't expect this. I just did some measures on FreeBSD 6.2 with gcc 3.4.6 and there is absolutely no significant difference between 32 and 64 bit mode - neither in compilation speed,...
6
by: idev | last post by:
Hi all, Please help me with my stuff. I downloaded python 2.5.1 package from http://blastwave.org it was compiled using Sun Studio 11 for Solaris 8 sparc. My system is Solaris 10 sparc and I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.