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

Liste des GroupesRevenir à c 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 : 27. Aug 2024, 08:15:05
Autres entêtes
Organisation : To protect and to server
Message-ID : <vajudp$2la6k$1@paganini.bofh.team>
References : 1
User-Agent : Unison/2.2
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.
--
Mikko

Date Sujet#  Auteur
6 Jul 25 o 

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal