473,748 Members | 2,361 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

3 New Member
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 3030
sicarie
4,677 Recognized Expert Moderator Specialist
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 Recognized Expert Top Contributor
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
shobhah
3 New Member
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
shobhah
3 New Member
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 Recognized Expert Top Contributor
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
2079
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 computation)? In particular, I know earlier versions of RH shipped with an "old" Python installed as "python" and that installation of more recent versions should not overwrite "python" (e.g., install as "python2.3"). Is this still the case in RH9? Any...
7
2149
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 customer base that uses it. I need to maintain backwards compatibility such that existing users won't have to do anything to their existing applications other than a re-compile when they upgrade to this new version of the library. I figure that I...
3
3247
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 world-wide Usenet newsgroup dedicated to the discussion of Microsoft Windows 64-bit programming. This is not a Call for Votes (CFV); you cannot vote at this time. Procedural details appear below. All followup discussion should be crossposted to...
0
1311
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 are the parameters to look for in binaries for porting. Any guide lines in this direction would be world of good to me. Please reply to this fast, i am running out of time.
31
3677
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. However, they generate slightly different results for floating point numbers. Are they really supposed to generate exactly the same results? I guess so because both platforms are supposed to be IEEE floating point standard (754?) compliant. ...
23
1938
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). However I seem to have encountered problems performing the most basic of manipulations and comparisons. I have posted my test code below, and the results I get on each compiler. The crux of the matter is that the 'strstr' function differs wildly...
4
6479
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
3810
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, nor in speed of the compiled result. As a benchmark i took a bootstrap of the SmallEiffel Compiler (which has 38 files with around 100 kloc). The times i got were very reliable. The bootstraping (compile the c files from last eiffel compiler...
6
2775
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 compiled using SunStudio 11 psycopg2 python binding for PostgreSQL 8.3.1. Compilation was OK, but when I am trying to import psycopg2 I am
0
8823
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9530
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9363
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9312
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4593
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.