First off, I know this question doesn't exactly belong here...
I'm asking here because this is the lowest common ground between binary opcodes and:
# python 2.7 class A(object): def __init__(this): print 'I am initialized!' instance = A()
my question is, what's the equivelant of that in either PPC or x86_64 binary opcodes??
(not python byte-code or ASM, though the low-level ASM range would be legit)
I'm trying to design a common interface language for recompilation purposes between opcodes and code.
but I need to know how a class/object would work on a CPU before I can start finalizing the designs.
for your concerns as to why I'd need this:
GCN/Wii: DOL/REL (PPC)
Windows: EXE/DLL (x86_64)
imagine being able to convert between those.
My language is designed for identifying large structures of ASM or binary opcodes and simplifying them into basic code keywords and statements, which can then be parsed into higher level languages such as C++, Java, or even Python (including byte-code).
what exactly is my language?
you'll see it when I release my open-source program ;)
I'm not too willing to share right now because it's still very much incomplete.
my only knowledge of the CPU comes from partially building one in Minecraft (Redstone)
(you might want to look into RedGame for something more functional than what I've built)
if you still want to know, I'll share this:
^ some older attempts at designs and a partially working interpreter (now lost)
I'm designing a better interpreter than the horrid methods I was using in that one.
I'm not a computer genius, but that doesn't mean I'm incapable of building something that works. ;)