tonybaloney / Pyjion

Pyjion - A JIT for Python based upon CoreCLR
https://www.trypyjion.com
MIT License
1.42k stars 59 forks source link

dis_native #494

Open mccoysc opened 2 years ago

mccoysc commented 2 years ago

pyjion.dis.dis_native(half, include_offsets=True)

run the above code in python 3.10.7,windows10 x64. it prints: disassembly only supported on x86_64 @tonybaloney

tonybaloney commented 2 years ago

Please can you open a Python REPL and do :

from platform import machine
print(machine())

And tell me what the output is?

https://github.com/tonybaloney/Pyjion/blob/develop/main/src/pyjion/dis.py#L624

mccoysc commented 2 years ago

the output is as the attached picture

------------------ Original ------------------ From: Anthony Shaw @.> Date: Wed,Sep 28,2022 4:36 PM To: tonybaloney/Pyjion @.> Cc: mccoysc @.>, Author @.> Subject: Re: [tonybaloney/Pyjion] dis_native (Issue #494)

Please can you open a Python REPL and do : from platform import machine print(machine())

And tell me what the output is?

https://github.com/tonybaloney/Pyjion/blob/develop/main/src/pyjion/dis.py#L624

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

mccoysc commented 2 years ago

Please can you open a Python REPL and do :

from platform import machine
print(machine())

And tell me what the output is?

https://github.com/tonybaloney/Pyjion/blob/develop/main/src/pyjion/dis.py#L624 the output is as following: AMD64

@tonybaloney

mccoysc commented 2 years ago

Please can you open a Python REPL and do :

from platform import machine
print(machine())

And tell me what the output is?

https://github.com/tonybaloney/Pyjion/blob/develop/main/src/pyjion/dis.py#L624

image

i found the code installed via pip install is as the above picture,that's the reason.