On Fri, 8 Jan 2021 09:48:44 -0000 (UTC)
"Kerr-Mudd,John" wrote:
> On Wed, 06 Jan 2021 12:42:05 GMT, 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
> >
>
> I'm naive; what's the problem with:
>
>
> bar: .cfi_startproc
> ... do something
>
> ;;; call foo
> ;;; ret
> ; just fallthru to execute foo and exit.
>
> foo: .. do more ..
> ret
Nothing as long as you only have one bar for your foo, often foo
was common finishing for several bars.
--
Steve O'Hara-Smith | Directable Mirror Arrays
C:\>WIN | A better way to focus the sun
The computer obeys and wins. | licences available see
You lose and Bill collects. | http://www.sohara.org/
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|