Operating System - HP-UX
1752774 Members
4951 Online
108789 Solutions
New Discussion юеВ

HOw to recognize 32bit cobol compiler

 
SOLVED
Go to solution
Frank de Vries
Respected Contributor

HOw to recognize 32bit cobol compiler

We have a Micro Focus cobol compilor,
on HPUX 11.00 /top/cobol/bin.

I need to link procob32 cobol objects.
(This is procobol for Oracle)

I think cob is it 64bit by default,
but I would like to invoke the 32bit version.
Should there be a different binary instead
of cob, cob32 or do I need to use a specific
parameter with cob ?

[orad03@orasrv2:]/opt/cobol/bin<>>> ls -altr cob
-r-xr-xr-x 49 bin bin 20480
[orad03@orasrv2:]/opt/cobol/bin<>>> what cob
cob:
cobprog.c 1.5
[orad03@orasrv2:]/opt/cobol/bin<>>> file cob
cob: PA-RISC1.1 shared executable dynamically linked -not stripped
[orad03@orasrv2:]/opt/cobol/bin<>>> uname -a
HP-UX orasrv2 B.11.00 U 9000/800 658369312 unlimited-user license

Thanks
Look before you leap
7 REPLIES 7
Frank de Vries
Respected Contributor

Re: HOw to recognize 32bit cobol compiler

Oh, before I forget:
Why do I think our cob cobol compiler is 64bit ?
Because the OS command getconf returns this:

[orad03@orasrv2:]/opt/cobol/bin<>>> getconf KERNEL_BITS
64
[orad03@orasrv2:]/opt/cobol/bin<>>>

However, we have other 32bit programs running on it so I know it is compatible with 32bit as well.
Look before you leap
Dennis Handly
Acclaimed Contributor

Re: HOw to recognize 32bit cobol compiler

>or do I need to use a specific
parameter with cob?

I would guess this?

>Why do I think our cob cobol compiler is 64bit? Because the OS command getconf returns

There doesn't have to be any connection between the bitsize of the driver, compiler and the kernel. The HP C/aC++ compilers were 32 bit but they generated 32 or 64 bit executables. On IPF, they are now 64 bit.

>we have other 32bit programs running on it so I know it is compatible with 32bit as well.

That's correct. A HP-UX 64 bit kernel will run both 32 and 64 bit applications.
Frank de Vries
Respected Contributor

Re: HOw to recognize 32bit cobol compiler

Thanks Denis,
So in fact my cob program could easily be 32 bit.

Does the fact that the file command returns file cob:
cob: PA-RISC1.1 shared executable dynamically linked -not stripped

not mean that it is 32bit because it says
PA-RISC1.1 ?

Otherwise it should return
ELF-64 executable object file - PA-RISC 2.0 (LP64) (And it clearly doesn't)

Please verify and confirm,
thanks
Look before you leap
Dennis Handly
Acclaimed Contributor

Re: HOw to recognize 32bit cobol compiler

not mean that it is 32bit because it says PA-RISC1.1?

Yes, the cob driver is a 32 bit app.

>Otherwise it should return
ELF-64 executable object file - PA-RISC 2.0 (LP64)

Exactly. Unless you are on IPF where you get:
ELF-32 executable object file - IA64
ELF-64 executable object file - IA64
Frank de Vries
Respected Contributor

Re: HOw to recognize 32bit cobol compiler

Thanks again Dennis,
by the way what does the abbreviation IPF stands for ?
Look before you leap
Pete Randall
Outstanding Contributor
Solution

Re: HOw to recognize 32bit cobol compiler

Itanium Processor Family


Pete

Pete
Dennis Handly
Acclaimed Contributor

Re: HOw to recognize 32bit cobol compiler

>by the way what does the abbreviation IPF stands for?

Also Integrity server.