TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: THOMAS KOENIG
from: TAUNO VOIPIO
date: 2021-01-06 14:17:00
subject: Re: AI and decompilation?

On 5.1.21 15.06, Thomas Koenig wrote:
> The Natural Philosopher  schrieb:
>> The C. Some things that are
>> neat in assembler are ugly as sin in C.
>
> One thing that is hard to do with C is to have different entries
> to the same function, something like:
>
> bar:
>          .cfi_startproc
>        ... do something
> foo:
>        ... do something else
>
>        ret
>
> and then either call foo or bar.
>

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

foo:    .. do more ..
         ret

If the functions have different stacks, there may be
a need to adjust the stack first before entering the ยจ
second function.

--

-TV

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.