Sujet : Re: Can someone please verify the execution trace of this?
De : chris.m.thomasson.1 (at) *nospam* gmail.com (Chris M. Thomasson)
Groupes : comp.lang.c comp.lang.c++Date : 20. May 2024, 21:32:57
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v2gc1q$51fq$17@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
User-Agent : Mozilla Thunderbird
On 5/20/2024 1:31 PM, Chris M. Thomasson wrote:
On 5/20/2024 1:30 PM, olcott wrote:
On 5/20/2024 3:19 PM, Chris M. Thomasson wrote:
On 5/20/2024 1:10 PM, olcott wrote:
On 5/20/2024 3:04 PM, Chris M. Thomasson wrote:
[...]
So, you created a simulator for x86? 32-bit I am assuming. Fwiw, I am interested on how you simulate the cmpxchg8b and/or the cmpxchg16b functions?
>
>
I use libx86emu providing an interface so that any C function
can simulate any other C function in debug step mode. The
original H can even simulated itself simulating P.
Can you show me a sample H? Is H a little program?
[...]
I notice this:
typedef int (*ptr)(); // ptr is pointer to int function
00 int H(ptr p, ptr i);
01 int D(ptr p)
02 {
03 int Halt_Status = H(p, p);
04 if (Halt_Status)
05 HERE: goto HERE;
06 return Halt_Status;
07 }
08
09 int main()
10 {
11 H(D,D);
12 return 0;
13 }
But, where is H?