Operating System - Linux
1828853 Members
2424 Online
109985 Solutions
New Discussion

Re: Compile C scripts using aCC

 

Compile C scripts using aCC

Hi

We are using a Systinet SOAP Server which is predominantly a C++ source base except for a few Client Stubs which are in C language. I have two questions.
1. Can we use aCC to compile the Client stubs in C language ?
2. Does aCC support C language compilation ? Will we have any issues if this aCC compiled Binary makes any calls to other C binaries compiled using other compilers ?

We use the aCC version - ANSI C++ B3910B A.03.45
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: Compile C scripts using aCC

Hi:

If you have a support contract, uplift to the latest version:

https://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B9007AA

An evaulation copy is also available:

https://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B9007AAEVAL

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: Compile C scripts using aCC

>1. Can we use aCC to compile the Client stubs in C language?

Yes but with the recent restructuring, you get both a C and C++ compilers for the same price. See JRF's links.
If they are just "stubs", you can probably use cc_bundled(1) to compile them.

>2. Does aCC support C language compilation? Will we have any issues if this aCC compiled binary makes any calls to other C binaries compiled using other compilers?

Yes, with -Ae. Especially on IPF where it is the same compiler.
No, C is C and isn't complex like C++.

>We use the aCC version A.03.45:

That's pretty old.

Re: Compile C scripts using aCC

Hi Dennis & James...

Thank you for the replies...

We are trying to troubleshoot an "unreproducible" issue in an environment of C/Cpp binaries interacting with each other... The issue is not a typical "memory leak" issue... We have done exhaustive code review of all binaries and found no clues...

We finally found out that these c stubs were compiled using aCC compiler using the -Ae option while the other binaries compile the c stubs using the Ansi C compiler... So, this is under suspicion... Do you feel that this could be an issue ? Will there actually be a difference in the object code between a C compiled and Cpp compiled C stub code ?
Dennis Handly
Acclaimed Contributor

Re: Compile C scripts using aCC

>We are trying to troubleshoot an "unreproducible" issue in an environment of C/Cpp binaries interacting with each other...
>The issue is not a typical "memory leak" issue

What is going wrong? An abort? A leak?

>Do you feel that this could be an issue? Will there actually be a difference in the object code between a C compiled and aCC compiled C stub code?

I wouldn't think so. If there were, it would likely abort right away.
It would help if you could explain the failure modes.