flat assembler
Message board for the users of flat assembler.
Index
> Projects and Ideas > Transparent CPU instruction set emulation |
| Author |
|
|
Matrix 14 Dec 2025, 03:29
Hello friends!
I have stumbled upon a new problem nowadays: Find another program Buy a new CPU Recompile the program if you have the source Emulate the missing instruction, using for example: INTEL SDE Cry in the corner |
|||
|
|
Matrix 14 Dec 2025, 04:12
Hey revolution!
Yeah, And it would be very cool if the kernel could do this automatically, for missing instructions if required. I would also like to show a very cool opensource project related: The Open-source PlayStation 3 Emulator It has evolved over the recent years significantly. |
|||
|
|
revolution 14 Dec 2025, 04:53
Matrix wrote: Yeah, And it would be very cool if the kernel could do this automatically, for missing instructions if required. The most likely existing solution is a library that can be linked to. Maybe Linux has a library that can be injected with LD_PRELOAD? But that would require that the code uses the "standard" C interpreter and libraries. |
|||
|
|
Matrix 14 Dec 2025, 16:09
I was thinking about linux.
But right now it should be possible to start a cmd.exe or terminal using sde (as root) that will "emulate" instruction sets for the programs started within. And decompile/recompile type emulation should be very fast, especially if it only replaces less than 1% of the program code, AVX for example with compatible instructions... |
|||
|
|
revolution 14 Dec 2025, 19:25
Emulation code doesn't need to be root. An emulator program could start the target as a child process and "debug" it to catch illegal instruction exceptions.
|
|||
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.