Re: DDD emulated by HHH --- (does not refer to prior posts)

Liste des GroupesRevenir à theory 
Sujet : Re: DDD emulated by HHH --- (does not refer to prior posts)
De : mikko.levanto (at) *nospam* iki.fi (Mikko)
Groupes : comp.theory
Date : 28. Aug 2024, 09:22:29
Autres entêtes
Organisation : -
Message-ID : <vamj7l$3d3fp$1@dont-email.me>
References : 1 2 3
User-Agent : Unison/2.2
On 2024-08-27 12:39:06 +0000, olcott said:

On 8/27/2024 2:15 AM, Mikko wrote:
On 2024-08-27 02:33:14 +0000, olcott said:
 
This is intended to be a stand-alone post that does not
reference anything else mentioned in any other posts.
 void DDD()
{
   HHH(DDD);
   return;
}
 _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]
 When we assume that:
(a) HHH is an x86 emulator that is in the same memory space as DDD.
(b) HHH emulates DDD according to the semantics of the x86 language.
 That means that HHH is stuck in a recursive simulation and does
not return. As x86 does not support an infinite memory space the
excution soon crashes in memory overflow.
Because HHH does not return the execution of DDD and consequently
the emulation of such execution is not continued after the call.
Therefore,
 
then we can see that DDD emulated by HHH cannot possibly get past
its own machine address 0000217a.
 
 _DDD()
[00002162] 55         push ebp
[00002163] 8bec       mov ebp,esp
[00002165] 6862210000 push 00002162
[0000216a] e853f4ffff call 000015c2
[0000216f] 83c404     add esp,+04
[00002172] 5d         pop ebp
[00002173] c3         ret
Size in bytes:(0018) [00002173]
 *Limited to 20,000,000 total instructions*
You cannot limit unless you limit something.
Is that a limitation of the execution environment or HHH?
Does the count include untraced instructions?
You should also specify what happens when the limit is reached.
--
Mikko

Date Sujet#  Auteur
10 Nov 24 o 

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal