On 6.1.21 14.42, Ahem A Rivet's Shot wrote:
> On Wed, 6 Jan 2021 14:17:30 +0200
> Tauno Voipio wrote:
>
>> This is a common construction in compiler-generated
>> machine code, if the first function calls another
>> just before return.
>>
>> bar: .cfi_startproc
>> ... do something
>> call foo
>> ret
>
> I recall optimising things like that by changing the last two lines
> to:
> jmp foo
>
>> foo: .. do more ..
>> ret
>
That's what I intended to say. Try the current release of
GCC for ARM Cortex.
There may be a register pop before the jump, to keep the
stack correct.
--
-TV
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|