TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: THOMAS KOENIG
from: PETER FLASS
date: 2021-01-05 14:25:00
subject: Re: AI and decompilation?

f9097447
REPLY:  ce82a162
PID: SoupGate-Win32 v1.05
XPost: alt.folklore.computers

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.
>

Simple in PL/I, although it turns out there is more overhead than you’d
think, particularly if foo and bar have different return types. I used
multiple entries extensively in the Iron Spring PL/I compiler, but it turns
out the “package” construct (once I implemented it) is much cleaner.
Multiple entries is also error-prone if the entries have different
parameters.

--
Pete

--- 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™.