comp.lang.ada
 help / color / mirror / Atom feed
From: stt@houdini.camb.inmet.com (Tucker Taft)
Subject: Re: PLEASE HELP ME
Date: 1998/10/22
Date: 1998-10-22T00:00:00+00:00	[thread overview]
Message-ID: <F183EM.ME6.0.-s@inmet.camb.inmet.com> (raw)
In-Reply-To: 70lmqq$pvc@sjx-ixn9.ix.netcom.com

DENIS (denis23@ix.netcom.com) wrote:

:     Please , I do not have any clue in Ada95, but I do have to know how to
: determine the order parameters are put on the stack.

:     Please write as soons is possible.

This is implementation-dependent.  Perhaps it would be in the
documentation provided by the Ada vendor, in the area of interfacing
with assembly language.  Furthermore, note that these days, not
all parameters are passed on the stack.  For most RISC machines,
at least a few parameters are passed in registers.

You could write your own test case using 'Address which might tell you
something.  E.g.:

  with system.storage_elements; use system.storage_elements;
  with ada.text_io; use ada.text_io;
  procedure stack_order is
    procedure p(A, B, C, D, E, F, G, H, I, J : Integer) is
    begin
      put_line("A'address = " & Integer_Address'Image(To_Integer(A'Address)));
      put_line("B'address = " & Integer_Address'Image(To_Integer(B'Address)));
      put_line("C'address = " & Integer_Address'Image(To_Integer(C'Address)));
      ...
    end p;
  begin
    p(1,2,3,4,5,6,7,8,9,10);
  end stack_order;

:              This is my email : datodia@hotmail.com

--
-Tucker Taft   stt@inmet.com   http://www.inmet.com/~stt/
Intermetrics, Inc.  Burlington, MA  USA
An AverStar Company




  reply	other threads:[~1998-10-22  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-21  0:00 PLEASE HELP ME DENIS
1998-10-22  0:00 ` Tucker Taft [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-08-05  0:55 STORAGE_ERROR : EXCEPTION_STACK_OVERFLOW Adaddict
2005-08-06 11:21 ` How to set the stack size on GNAT (Follow-up) Adaddict
2005-08-07 12:33   ` Please, help me Adaddict
2005-08-07 14:11     ` Jeff Creem
2005-08-07 15:16       ` Ludovic Brenta
replies disabled

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