473,396 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Mixed Managed/Unmanaged

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
Nov 17 '05 #1
2 1397
Good luck if it works.

"Shawn B." <le****@html.com> wrote in message
news:eP**************@tk2msftngp13.phx.gbl...
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

Nov 17 '05 #2
This doesn't answer my question.
Thanks,
Shawn
"Bonj" <a@b.com> wrote in message
news:OC**************@TK2MSFTNGP10.phx.gbl...
Good luck if it works.

"Shawn B." <le****@html.com> wrote in message
news:eP**************@tk2msftngp13.phx.gbl...
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


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Adam McKee | last post by:
We are using Visual Studio.NET 2003 in our project with .NET framework 1.1. One of our libraries is a mixed-mode dll assembly consisting of one managed C++ library, and several unmanaged C++...
1
by: Roy Chastain | last post by:
I have read and re-read KB 814472. There appears to be a little 1984 New Speak in it. I am referring to option 3. DLL that contains consumers that use managed code and dll exports or managed...
8
by: Nadav | last post by:
Hi, I am writing a performence critical application, this require me to stick to unmanaged C++ as performance is much better using unmanaged C++ ( about 33% better ), Still, I am trying to avoid...
2
by: Steve McLellan | last post by:
Hi, We've found some pretty serious performance hits that we didn't expect in a mixed mode C++ application. The number crunching bits of our algorithms are compiled with #pragma unmanaged. They...
4
by: | last post by:
I am stuck in a situation and I do believe that this should work, but it doesn't. I have a unmanaged dll, that uses MFC. This works great. Now I recompile the unmanaged dll so it contains...
3
by: Steve | last post by:
I have former VC++ 6.0 application which was ported to .NET. Now we continue to develop this app under VS.NET. The app now contains both managed and unmanaged classes. Now I have a problem with...
6
by: Robert Ginsburg | last post by:
I have a DLL that is "mixed mode" in that it is both an ATL com server and a reference managed C++ class. For the most part it works, however the problem I have (which may simply not be solvable)...
4
by: Lonewolf | last post by:
hi, I'm still in the process of transiting from MFC/VC6 to vs2005, and a lot of things are very alien to me. So hope you could bear with me if my question sounds stupid. Basically I have native...
3
by: Mali Guven | last post by:
Hello, I have a native DLL (written in C) which is supposed to call a managed DLL (was written in C#, and an entry point was injected modifying the ildasm'd code). The exectuable calls the...
0
by: Arne Adams | last post by:
Hi all, i have a managed c++ dll using both managed and unmanaged code and an unmanaged application that calls the unmanaged code of the managed dll. I did follow...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.