comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic, 561.796.8997, M/S 731-93" <condicma@PWFL.COM>
Subject: Re: Ada95/Mil-Std-1553 Problem (Long Post - Sorry About That)
Date: 1997/01/20
Date: 1997-01-20T00:00:00+00:00	[thread overview]
Message-ID: <97012012282845@psavax.pwfl.com> (raw)


Richard Kenner <kenner@LAB.ULTRA.NYU.EDU> writes:
>This isn't portable.  There's explicit implementation permission to
>reserve a particular space in a record for the tag (but not for any
>other internal field).  So a compiler is permitted to reject such a
>rep clause (GNAT will, for example).
>
    There's an additional problem - what you want to be able to do is
    figure out how many words are in the message, then do an
    UNCHECKED_CONVERSION of the message into your raw-word output
    buffer. If the tag info is in there at all, it a) gets counted in
    the word count and b) gets transferred to the buffer. (If you can
    guarantee it falls at the end, you could at least chop it off!)

    It would seem to me that the tag ought to be treated like array
    bounds - if an implementation keeps the bounds of an array with
    the array itself, all the usual clauses (like 'ADDRESS) are
    supposed to ignore that data.

    Using Streams seems to provide some mechanism for stripping out
    the tag info, but I haven't got the OO thing down far enough just
    yet to see how I could use it to get the contents of a message
    into a raw-word array where I can manipulate it. (Working on it in
    my "spare time". If I get an answer, I'll publish an example to
    whoever would like one.) I'm not sure this isn't going to involve
    moving the data twice or that it won't lead to grossly inefficient
    operation - but it seems like an area to start.

    MDC

Marin David Condic, Senior Computer Engineer    ATT:        561.796.8997
M/S 731-96                                      Technet:    796.8997
Pratt & Whitney, GESP                           Fax:        561.796.4669
P.O. Box 109600                                 Internet:   CONDICMA@PWFL.COM
West Palm Beach, FL 33410-9600                  Internet:   CONDIC@FLINET.COM
===============================================================================
    "Languages don't kill people. *Programmers* do!"

        --  Rich Stewart - Language Lawyer & Language Control Opponent.
===============================================================================




             reply	other threads:[~1997-01-20  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-01-20  0:00 Marin David Condic, 561.796.8997, M/S 731-93 [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-01-14  0:00 Ada95/Mil-Std-1553 Problem (Long Post - Sorry About That) Marin David Condic, 561.796.8997, M/S 731-93
1997-01-15  0:00 ` Larry Kilgallen
1997-01-16  0:00   ` Richard Kenner
1997-01-12  0:00 Marin David Condic, 561.796.8997, M/S 731-93
1997-01-13  0:00 ` Michael F Brenner
1997-01-13  0:00 ` Amy Hartsough
1997-01-14  0:00 ` Brad Balfour
replies disabled

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