S
Shawn B.
Greetings,
I'm new to MC++ (but not C#) so bear with me. I have a question...
I have created a 6502/65c02/65816 CPU processor core for a simulator (in C#)
and now for a part of performance optimization, I'd like to consider
Manage/unmanaged C++. I am considering building a JIT backend for this and
an upcoming ARM7 core.
Here's my specific question: is it possible for me to write the CPU core in
unmanaged code and then somehow, have it contain managed delegates and an
interface?
You see, the CPU is supposed to be completely self-contained. As it is
executing, it can send messages to someone who is "listening". Therefore, I
can tell the CPU what memory ranges I'm watching and when one has changed
and/or been read it can send an event and then I can interpret that
somewhere else as a graphic screen to be rendered, or whatever.
So I'm considering making the CPU Core in unmanaged C++ but then having
certain elements of it managed, such as the Interface and the Delegates.
This way I can use the CPU in my C# simulator application.
Thanks,
Shawn
I'm new to MC++ (but not C#) so bear with me. I have a question...
I have created a 6502/65c02/65816 CPU processor core for a simulator (in C#)
and now for a part of performance optimization, I'd like to consider
Manage/unmanaged C++. I am considering building a JIT backend for this and
an upcoming ARM7 core.
Here's my specific question: is it possible for me to write the CPU core in
unmanaged code and then somehow, have it contain managed delegates and an
interface?
You see, the CPU is supposed to be completely self-contained. As it is
executing, it can send messages to someone who is "listening". Therefore, I
can tell the CPU what memory ranges I'm watching and when one has changed
and/or been read it can send an event and then I can interpret that
somewhere else as a graphic screen to be rendered, or whatever.
So I'm considering making the CPU Core in unmanaged C++ but then having
certain elements of it managed, such as the Interface and the Delegates.
This way I can use the CPU in my C# simulator application.
Thanks,
Shawn