473,383 Members | 2,005 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,383 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 2995
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.