From: "Tarjei Tj�stheim Jensen" <tarjei@online.no>
Subject: Re: Is an RTOS Required for Ada?
Date: 1999/05/20
Date: 1999-05-20T00:00:00+00:00 [thread overview]
Message-ID: <3744657E.A04ABC52@online.no> (raw)
In-Reply-To: 1999May20.112204.1@eisner
Larry Kilgallen wrote:
> Tarjei Tj�stheim Jensen writes:
> >
> > Robert Dewar wrote
> >>For example, in GNORT mode, the compiler will generate an open
> >>loop for a block copy, to avoid calling the bcopy routine in
> >>the run-time
> >
> >
> > I'm rather surprised. I would assume that the most eficient way of doin this
> > would be to use inline assembly code. I thought most cpus have a nice set of
> > special instructions that will do this. Could there be problems with using
> > these instructions?
>
> Those with great concern for speed will often be using RISC machines,
> where instruction sets have been simplified. Presuming reasonable
> caching inside the CPU, data loads and stores will dominate the
> copy time.
>
My question was rather clumsily put: My surprise was that gnat used bcopy instead of generating the
instructions. It seems to be overkill to call a function instead of just emitting the assembly
instructions.
I seem to remember that function calls are supposed to eat clock cycles and should if possible be avoided.
Especially in cases like this where I assume (I've not checked this so I may be horribly wrong) this is a
frequent function call. It is hard to imagine the function call being any saving in either time or space
over emitting the code inline.
Greetings,
next prev parent reply other threads:[~1999-05-20 0:00 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-13 0:00 Is an RTOS Required for Ada? Tramse
1999-05-13 0:00 ` Marin David Condic
1999-05-13 0:00 ` Rakesh Malhotra
1999-05-14 0:00 ` Tramse
1999-05-16 0:00 ` Robert Dewar
1999-05-19 0:00 ` Robert A Duff
1999-05-20 0:00 ` Robert Dewar
1999-05-25 0:00 ` George Romanski
1999-05-25 0:00 ` Robert Dewar
1999-05-26 0:00 ` George Romanski
1999-05-28 0:00 ` Robert Dewar
1999-06-09 0:00 ` Robert A Duff
1999-06-09 0:00 ` Robert Dewar
1999-05-28 0:00 ` Rod Chapman
1999-05-28 0:00 ` Robert Dewar
1999-05-28 0:00 ` Richard D Riehle
1999-05-28 0:00 ` David C. Hoos, Sr.
1999-05-20 0:00 ` Tarjei Tj�stheim Jensen
1999-05-20 0:00 ` Larry Kilgallen
1999-05-20 0:00 ` Tarjei Tj�stheim Jensen [this message]
1999-05-20 0:00 ` Larry Kilgallen
1999-05-21 0:00 ` Robert Dewar
1999-05-16 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox