[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::ada

Title:DEC Ada
Notice:Ada is no longer a trademark of the US Government
Moderator:KMOOSE::CMCCUTCHEON
Created:Mon Jan 27 1986
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3874
Total number of notes:16668

3839.0. "ADA questions" by IB002::MARIANO () Wed Feb 05 1997 12:11

    Hi all,
    
    I'm not too familiar about ADA language but one of my customers asked me
    several questions.
    
     This customer has been worked several years whith VAX ADA and other ADA
    platforms.
    
    Now he has two LINDEN systems (Alpha server 2100, 2 CPU's + VME bus +
    DEC UNIX V 4.0A) and in the next future Alpha Server's 4100A.
    
    The questions are the following:
    
    1.- Can he use UNIX socket from ADA aplication?
        For example, an Unix socket (Client or Server) written in others
        Unix platforms can run on Alpha whitout any modifications?
    
    2.- Can he call RPC (Remoute Procedure Call) from an ADA application?
    
    3.- Does a record ADA object with representation clauses has the same
        internal representation using XADA or DEC UNIX ADA?
    
    4.- Are there utilities to convert OPEN_VMS LIB calls to its
        equivalent UNIX calls and if not what is the strategy to port a large
        OPEN VMS ADA application using many of VMS standard library calls to
        UNIX ADA?
    
    5.- Can ALPHA operate as DECNET node allowing that VAXELN node perform
        a task to task comunication?
    
    6.- Are there any bindings from ADA application SW to call X, X-toolkit
        or Motif library?
    
    Thank you very much in advance
    
    Mariano
    
    
    
                                           
T.RTitleUserPersonal
Name
DateLines
3839.1Some answersKMOOSE::CMCCUTCHEONCharlie McCutcheonWed Feb 05 1997 15:1731
Hi, I'll only answer a few.  (I'm at home sick...)

>    3.- Does a record ADA object with representation clauses has the same
>        internal representation using XADA or DEC UNIX ADA?

Yes, full representation clauses should give identical data layout
on DEC Ada platforms.  Note I said full, since we don't require
every record component to be layed out in a rep clause.
    
>    4.- Are there utilities to convert OPEN_VMS LIB calls to its
>        equivalent UNIX calls and if not what is the strategy to port a large
>        OPEN VMS ADA application using many of VMS standard library calls to
>        UNIX ADA?

Not that I'm aware of, not directly available from DEC Ada.

I can see if someone knows of something however.
    
>    6.- Are there any bindings from ADA application SW to call X, X-toolkit
>        or Motif library?

Yes, X and Motif bindings are on the DEC Ada kit, for X4 motif 1.1,
and X5 Motif 1.2.

Charlie

    
    
    
                                           

3839.2fuller answer to #3FLOYD::YODERMFYWed Feb 05 1997 15:448
To be absolutely sure of getting identical representation, it is best to:

  (1) Give a length clause specifying the length in bits.  For example:
	for T'Size use 10*64;
  (2) Specify the exact location of every field.
  (3) Insure there are no gaps, by adding dummy fields if necessary.

(These recommendations aren't specific to DEC Ada.)
3839.3Question about #5FLOYD::YODERMFYWed Feb 05 1997 15:476
    5.- Can ALPHA operate as DECNET node allowing that VAXELN node perform
        a task to task comunication?

I'm not sure if I get the proper sense of this question.  Tasks within the same
program cannot be put on different nodes; cross-node communication would have to
be from program to program.  Does this answer the question?
3839.4Answers to #1 and #2FLOYD::YODERMFYWed Feb 05 1997 15:5824
    2.- Can he call RPC (Remoute Procedure Call) from an ADA application?

Yes.

    1.- Can he use UNIX socket from ADA aplication?
Yes, but see below.
        For example, an Unix socket (Client or Server) written in others
        Unix platforms can run on Alpha whitout any modifications?

Maybe, but more details would be needed.

In using any UNIX calls it is necessary to realize that if the UNIX call can
block the entire process (rather than just its thread), the result may not be
what you want in a tasking program.  (Usually, what you prefer is that any
system call block only the task or thread which issues the call.)

I'm assuming we are talking about an Ada application.  If the same-named UNIX
calls have the same functionality on the two systems, and if the interface
pragmas (presumably, interface to C) are modified to accommodate any difference
in naming conventions between the two systems, the program should work. 
However, having "the same functionality" is not the same as having the same
*documented* functionality if the program depends on bugs or restrictions
present on the old system.  Another possibility (but less likely) is that the
program can depend on quirks of the old Ada tasking run-time system.
3839.5Do you have some $$$$ ?? ;-)TAEC::URSCHThu Feb 06 1997 10:3011
Hello,

As we have ported our application from OpenVMS to Digital Unix,
we have a good number of OpenVMS system services being emulated. So
depending upon which system services are used, we may have something
for you. Send me mail if you want to pursue this direction.
 
There is also a company seling something called ACCERL8, I think.
I don't recall where to reach them.

Jean-Michel