Re: FastCode RTL Replacement v0.20 Released!
- From: "John O'Harrow" <john@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 10 Oct 2005 21:57:27 +0100
"Anders Isaksson" <blockcad@xxxxxxxxxxxxxxx> wrote in message
news:434abf62$1@xxxxxxxxxxxxxxxxxxxxxxxxx
> John O'Harrow wrote:
>> "Dennis" <marianndkc@xxxxxxxxxxxxxxx> wrote in message
>> news:434a95bc@xxxxxxxxxxxxxxxxxxxxxxxxx
>>> Hi John
>>>
>>> Does this involve a function pointer and adds one level of
>>> indirection?
>>
>> No, this does not set up a function pointer or add any level of
>> indirection. In fact it adds no code whatsover. The compiler simply
>> maps one functions call address to another.
>
> Don't know about later versions of Delphi, but in D5 this works, but
> generates
>
> call dword ptr [a]
> call dword ptr [b]
> call dword ptr [c]
I have just checked this out in D2005 and you are indeed correct. The
compiler does indeed generate a call dword ptr [xxxxxxx] instead of
call.yyyyyyyy.
Given that, we need to decide whether the extra few cycles (and 1 extra
byte) call overhead justifies having a separate (often identical) routine
for each target in any direct call library.
I still believe this is the correct way to proceed, even if purely for ease
of maintenance. If this minute overhead really matters to a programmer,
they can always call the shared common function directly.
I will delay starting on the updating the Direct Call libraries until a
decision is made.
regards,
John
.
- Follow-Ups:
- Re: FastCode RTL Replacement v0.20 Released!
- From: Dennis
- Re: FastCode RTL Replacement v0.20 Released!
- References:
- FastCode RTL Replacement v0.20 Released!
- From: Charalabos Michael
- Re: FastCode RTL Replacement v0.20 Released!
- From: Dennis
- Re: FastCode RTL Replacement v0.20 Released!
- From: Charalabos Michael
- Re: FastCode RTL Replacement v0.20 Released!
- From: Dennis
- Re: FastCode RTL Replacement v0.20 Released!
- From: Dennis
- Re: FastCode RTL Replacement v0.20 Released!
- From: John O'Harrow
- Re: FastCode RTL Replacement v0.20 Released!
- From: Dennis
- Re: FastCode RTL Replacement v0.20 Released!
- From: John O'Harrow
- Re: FastCode RTL Replacement v0.20 Released!
- From: Dennis
- Re: FastCode RTL Replacement v0.20 Released!
- From: John O'Harrow
- Re: FastCode RTL Replacement v0.20 Released!
- From: Dennis
- Re: FastCode RTL Replacement v0.20 Released!
- From: John O'Harrow
- Re: FastCode RTL Replacement v0.20 Released!
- From: Dennis
- Re: FastCode RTL Replacement v0.20 Released!
- From: John O'Harrow
- Re: FastCode RTL Replacement v0.20 Released!
- From: Dennis
- Re: FastCode RTL Replacement v0.20 Released!
- From: John O'Harrow
- Re: FastCode RTL Replacement v0.20 Released!
- From: Anders Isaksson
- FastCode RTL Replacement v0.20 Released!
- Prev by Date: Re: Fasctode - Sort estimating complexity and B&V
- Next by Date: Re: Fasctode - Sort estimating complexity and B&V
- Previous by thread: Re: FastCode RTL Replacement v0.20 Released!
- Next by thread: Re: FastCode RTL Replacement v0.20 Released!
- Index(es):
Relevant Pages
|