Operating System - HP-UX
1846441 Members
3076 Online
110256 Solutions
New Discussion

Re: 32 / 64 bit difference

 
SOLVED
Go to solution
Hunki
Super Advisor

32 / 64 bit difference


We currently upgraded our develop server from B.11.00 to B.11.11 but are having problems running our application on that.

The complete stats( of the servers in develop and test ) are attached herewith , but the question I want to ask is that previously the app was running on 32bit mode and now with the upgraded server is on 64bit , can that make a difference in any case.If yes then please give detailed description of the problems we can face with that.

The develop server is on 64bit ( after the upgrade ) and test server is on 32bit .( before the upgrade).
8 REPLIES 8
A. Clay Stephenson
Acclaimed Contributor

Re: 32 / 64 bit difference

Where do I begin? First, 11.11 code will not run on 11.0 (or if it does, it works by accident.) If you must run in a mixed environment then you should develop in 11.0 (although 11.0 is obsolete). You should also note that the compiler, by default, generates code to match the detected architecture so that if the compiler finds itself on a 64-bit processor with a 64-bit OS, it generates codes for that platform --- which will not run on a 32-bit processor or a 32-bit OS. You can easily override that default selection with the +DAportable compiler switch. I also note that you are switching from Oracle 7 to Oracle 9; Oracle 9 is only available as a 64-bit version.

If this were me, I would insidt that all of your customers/users upgrade to at least 11.11 and 64-bit so that you are at a supported level.

It appears that your entire migration/testing plan to date has been less than thorough.
If it ain't broke, I can fix that.
Patrick Wallek
Honored Contributor

Re: 32 / 64 bit difference

>>but are having problems running our application on that.

What kinds of problems? Is it slow? Does it not run? Is it giving errors, if so what are they? You haven't provided many details.

I also notice that you not only upgraded the OS, but are also running new versions of Oracle and Tuxedo.

Any one of those upgrades (OS, Oracle or Tuxedo) could potentially cause issues. Doing all three at one makes it real hard to troubleshoot what exactly is causing you problems (especially with so little data).
Hunki
Super Advisor

Re: 32 / 64 bit difference

Let me rephrase :

The develop server is more of a another test server.
Hunki
Super Advisor

Re: 32 / 64 bit difference


The develop server is a 32bit server , so can the code work on the 64bit server then.

Thanks,
hunki
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: 32 / 64 bit difference

Please try to rephrase again.

The bottom-line is this: Well-written 32-bit code will run without change in either a 64-bit or 32-bit enviroment. Well-written or poorly-written code 64-bit code will not run in a 64-bit environment.
If it ain't broke, I can fix that.
Hunki
Super Advisor

Re: 32 / 64 bit difference

Thanks Clay.
A. Clay Stephenson
Acclaimed Contributor

Re: 32 / 64 bit difference

Ooops, I'm stupid:

Well-written or poorly-written code 64-bit code will not run in a 64-bit environment.

SHOULD BE:

Well-written or poorly-written code 64-bit code will not run in a 32-bit environment.
If it ain't broke, I can fix that.
Dennis Handly
Acclaimed Contributor

Re: 32 / 64 bit difference

A 32 bit application should run the same, whether the kernel is 32 or 64 bit.

>Clay: You should also note that the compiler, by default, generates code to match the detected architecture so that if the compiler finds itself on a 64-bit processor with a 64-bit OS, it generates codes for that platform - which will not run on a 32-bit processor or a 32-bit OS.

This is not exactly true. The default is 32 bit. The compiler defaults to PA1.1 or PA2.0 based on the machine but not 64 bit. Obviously if on a 64 bit kernel, it won't run on a PA1.1 machine.