comp.lang.ada
 help / color / mirror / Atom feed
* gnat with HPUX 10.20
@ 1997-09-25  0:00 Joerg Huber
  1997-09-29  0:00 ` Ronald Cole
  0 siblings, 1 reply; 2+ messages in thread
From: Joerg Huber @ 1997-09-25  0:00 UTC (permalink / raw)



Enviroment

OS   : HPUX 10.20
gnat : Version 3.09 for HPUX 10.10

Consider the following Ada code:

SPEC : delay_test.ads

package DELAY_TEST is
  procedure DO_DELAY;
end DELAY_TEST;


BODY : delay_test.adb

package body DELAY_TEST is
  procedure DO_DELAY is
  begin
    delay 0.0;
  end DO_DELAY;
end DELAY_TEST;


EXECUTABLE : adi_test_delay.adb

with DELAY_TEST;
with TEXT_IO;

procedure ADI_TEST_DELAY is
begin 
  TEXT_IO.PUT_LINE ("Test ADI_TEST_DELAY");
end ADI_TEST_DELAY;

Compile and link with the command :

gnatmake adi_test_delay

If I run the executable adi_test_delay it crashes badly (it logs me out 
of the system).
If I take TEXT_IO out it works fine.

What is the problem?
Is there a gnat version (or patch) for HPUX 10.20, and if so, where can 
I get it?

Thanks for your help.


Joerg Huber
Command and Control Information Systems 
ADI Limited, Systems Group
Perth, Australia

mailto:jorg@ccis.adisys.com.au




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gnat with HPUX 10.20
  1997-09-25  0:00 gnat with HPUX 10.20 Joerg Huber
@ 1997-09-29  0:00 ` Ronald Cole
  0 siblings, 0 replies; 2+ messages in thread
From: Ronald Cole @ 1997-09-29  0:00 UTC (permalink / raw)



Joerg Huber <jorg@ccis.adisys.com.au> writes:
> Compile and link with the command :
> 
> gnatmake adi_test_delay
> 
> If I run the executable adi_test_delay it crashes badly (it logs me out 
> of the system).
> If I take TEXT_IO out it works fine.

Just hazarding a guess (a practice I learned from Dewar), but some of
the patches to gcc-2.7.2 distributed with gnat-3.09 break optimization
for the HPPA.

> What is the problem?

You haven't purchased support from ACT.

> Is there a gnat version (or patch) for HPUX 10.20, and if so, where can 
> I get it?

You can try gnat-3.10p, but some of my initial testing shows that the
patch file distributed with gnat-3.10p still suffers from broken
optimization on this architecture.  If those patches are integrated in
gcc-2.8 (as the patch file claims), then perhaps optimization will be
better when it's finally released and a gnat based on it is made
available.

Otherwise, try all optimization options on each source file and use
the resulting binary that works best.

-- 
Forte International, P.O. Box 1412, Ridgecrest, CA  93556-1412
Ronald Cole <ronald@ridgecrest.ca.us>    Phone: (760) 499-9142
President, CEO                             Fax: (760) 499-9152
My PGP fingerprint: E9 A8 E3 68 61 88 EF 43  56 2B CE 3E E9 8F 3F 2B




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-09-29  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-25  0:00 gnat with HPUX 10.20 Joerg Huber
1997-09-29  0:00 ` Ronald Cole

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox