From: kilgallen@eisner.decus.org (Larry Kilgallen)
Subject: Re: Is an RTOS Required for Ada?
Date: 1999/05/20
Date: 1999-05-20T00:00:00+00:00 [thread overview]
Message-ID: <1999May20.180936.1@eisner> (raw)
In-Reply-To: 3744657E.A04ABC52@online.no
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1180 bytes --]
In article <3744657E.A04ABC52@online.no>, "Tarjei Tj�stheim Jensen" <tarjei@online.no> writes:
> 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.
Some systems have tiered costs for function calls, depending
on the degree of complexity you require for the interface.
Certainly a function call can save space over a copy loop,
depending on not only the instruction set but also the rest
of the machine design (alignment, etc.) Is saving space
worth it ? Some compilers let you choose between saving
space and saving time. For copying a long string, I would
think function call overhead would be lost in the noise.
For copying a short string, obviously not. Is the string
length known at compile time ? I prefer to shy away from
criticizing a code generation algorithm until I have a
specific program of my own that gets bitten by a problem.
Larry Kilgallen
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 ` 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
1999-05-20 0:00 ` Larry Kilgallen [this message]
1999-05-21 0:00 ` Robert Dewar
1999-05-13 0:00 ` Marin David Condic
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