Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Mikko Newsgroups: comp.theory Subject: Re: 197 page execution trace of DDD correctly simulated by HHH Date: Tue, 2 Jul 2024 09:40:12 +0300 Organization: - Lines: 52 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 02 Jul 2024 08:40:14 +0200 (CEST) Injection-Info: dont-email.me; posting-host="4828e08c748a13fcd16c5d5792ef20ab"; logging-data="1627452"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+buuHvszBV08cLdBys9bXc" User-Agent: Unison/2.2 Cancel-Lock: sha1:oJfBB/ys/FidP1eIqX/YVHmdWuA= Bytes: 3802 On 2024-07-02 01:36:51 +0000, olcott said: > On 7/1/2024 7:38 PM, Richard Damon wrote: >> On 7/1/24 8:59 AM, olcott wrote: >>> On 7/1/2024 3:23 AM, Fred. Zwarts wrote: >>>> Op 30.jun.2024 om 19:20 schreef olcott: >>>>> >>>>> _DDD() >>>>> [00002172] 55               push ebp      ; housekeeping >>>>> [00002173] 8bec             mov ebp,esp   ; housekeeping >>>>> [00002175] 6872210000       push 00002172 ; push DDD >>>>> [0000217a] e853f4ffff       call 000015d2 ; call HHH(DDD) >>>>> [0000217f] 83c404           add esp,+04 >>>>> [00002182] 5d               pop ebp >>>>> [00002183] c3               ret >>>>> Size in bytes:(0018) [00002183] >>>>> >>>> >>>> It cannot possibly return, because HHH aborts itself one cycle too >>>> early, showing that the emulation is incorrect. If that is over your >>>> head, try to learn how x86 instructions work. >>> >>> _DDD() >>> [00002172] 55               push ebp      ; housekeeping >>> [00002173] 8bec             mov ebp,esp   ; housekeeping >>> [00002175] 6872210000       push 00002172 ; push DDD >>> [0000217a] e853f4ffff       call 000015d2 ; call HHH(DDD) >>> [0000217f] 83c404           add esp,+04 >>> [00002182] 5d               pop ebp >>> [00002183] c3               ret >>> Size in bytes:(0018) [00002183] >>> >>> DDD is correctly emulated by HHH which calls an >>> emulated HHH(DDD) to repeat the process until aborted. >>> >>> >> >> CAN'T BE. >> >> A "Correct Emulation" is one that produces the same result as the >> program at the input. >> > > Which can only possibly occur be disregarding the semantics > of the x86 language. Whenever you say anything about the x86 semantics you should include a pointer to the relevant point in Intel's documentation. -- Mikko