473,412 Members | 1,921 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,412 software developers and data experts.

Unmanaged code?

What is 'Unmanaged Code', and what is 'Managed Code'?
Nov 20 '05 #1
11 1177
"Jarod_24" <ja******@hotmail.com> wrote in message
news:54******************************@news.teranew s.com...
What is 'Unmanaged Code', and what is 'Managed Code'?


Nevermind.

I looked it up...
Nov 20 '05 #2
I'm sure there are better explainations but here's mine in a nutushell.

Managed code is what the CLR ( Common Langauge Runtime ) manages. It Manages
the secuirty of your code, the allocation of memory, the JIT of Intermediate
Langauge, the type saftey etc.

Unamaged code is code which runs natively on your machine.

Regards - OHM
Jarod_24 wrote:
What is 'Unmanaged Code', and what is 'Managed Code'?


--
Best Regards - OHM

O_H_M{at}BTInternet{dot}com
Nov 20 '05 #3
"Jarod_24" <ja******@hotmail.com> schrieb
"Jarod_24" <ja******@hotmail.com> wrote in message
news:54******************************@news.teranew s.com...
What is 'Unmanaged Code', and what is 'Managed Code'?


Nevermind.

I looked it up...


Hey, great! It took you two mins only. You are really fast! :-)
--
Armin

Nov 20 '05 #4
* "Jarod_24" <ja******@hotmail.com> scripsit:
What is 'Unmanaged Code', and what is 'Managed Code'?


Everything which is written by using the .NET Framework /only/ (no
p/invoke, no COM interop) is "managed code". Everything else is
unmanaged code.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5
* "One Handed Man [ OHM# ]" <O_H_M{at}BTInternet{dot}com> scripsit:
Unamaged code is code which runs natively on your machine.


Even .NET code can run "natively" on the machine.

;->

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #6
Only if its unmanaged. .NET code is MSIL which is an intermediate langauge.
A 'real' executable executes machine code. Unless we are talking about C++
generated unmanaged code.

OHM
Herfried K. Wagner [MVP] wrote:
* "One Handed Man [ OHM# ]" <O_H_M{at}BTInternet{dot}com> scripsit:
Unamaged code is code which runs natively on your machine.


Even .NET code can run "natively" on the machine.

;->


--
Best Regards - OHM

O_H_M{at}BTInternet{dot}com
Nov 20 '05 #7
"One Handed Man [ OHM# ]" <O_H_M{at}BTInternet{dot}com> schrieb
Only if its unmanaged. .NET code is MSIL which is an intermediate
langauge. A 'real' executable executes machine code. Unless we are
talking about C++ generated unmanaged code.

After JIT compilation it *is* machine code.

--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #8
erm, YES, but thats is not available in the executable is it. The
executable is not machine code. CLR loads the JIT'd code into memory after
it checked the security permissions and creates a process for it to run in.

Regards - OHM

Armin Zingler wrote:
"One Handed Man [ OHM# ]" <O_H_M{at}BTInternet{dot}com> schrieb
Only if its unmanaged. .NET code is MSIL which is an intermediate
langauge. A 'real' executable executes machine code. Unless we are
talking about C++ generated unmanaged code.

After JIT compilation it *is* machine code.


--
Best Regards - OHM

O_H_M{at}BTInternet{dot}com
Nov 20 '05 #9
"One Handed Man [ OHM# ]" <O_H_M{at}BTInternet{dot}com> schrieb
erm, YES, but thats is not available in the executable is it. The
executable is not machine code. CLR loads the JIT'd code into memory
after it checked the security permissions and creates a process for
it to run in.

I forgot the ";-)"
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #10
* "One Handed Man [ OHM# ]" <O_H_M{at}BTInternet{dot}com> scripsit:
erm, YES, but thats is not available in the executable is it. The
executable is not machine code. CLR loads the JIT'd code into memory after
it checked the security permissions and creates a process for it to run in.


Yes, basically you are right. But .NET application images can contain
native code too.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #11
* "One Handed Man [ OHM# ]" <O_H_M{at}BTInternet{dot}com> scripsit:
Only if its unmanaged. .NET code is MSIL which is an intermediate langauge.
A 'real' executable executes machine code. Unless we are talking about C++
generated unmanaged code.


Nevertheless, the JITter will create native code which is executed on
the machine. You can use "ngen.exe" to create a native image of an
application. IMO native code doesn't have much to do with
managed/unmanaged.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #12

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

Similar topics

7
by: Timothy Shih | last post by:
Hi, I am trying to figure out how to use unmanaged code using P/Invoke. I wrote a simple function which takes in 2 buffers (one a byte buffer, one a char buffer) and copies the contents of the byte...
2
by: Paul Kenny | last post by:
Hi, I am trying to expose the functionality of an unmanaged C++ class to the other languages available in the .NET Framework. I have decided to do this by wrapping the unmanaged C++ class in a...
4
by: Rachel Suddeth | last post by:
What is the difference between a managed/unmanaged resource, and how do you tell which is which? I'm trying to understand how to write some Dispose() methods, and we are supposed to put code that...
4
by: repstat | last post by:
Hi I have a project which is going to be doing some string manipulation which needs to be pretty fast. The user interface is going to be written in C#. I am going to write the string handling...
3
by: zhphust | last post by:
I want to convert a object of a managed class to a unmanaged structure that has the same member with that managed class. Can anybody tell me how i can do it? Thanks in advance. -- zhphust...
1
by: Sparhawk | last post by:
Hi, my company is going to migrate a large VC++ application to .NET to make use of Windows Forms (the old class library is not updated any more). We are not planning to migrate the rest of the...
5
by: R. MacDonald | last post by:
Hello, all, I am currently working on a .Net (VB) application that invokes routines in unmanaged (Fortran) DLLs. The unmanaged routines then communicate with the .Net application by means of a...
6
by: Stephen Walch | last post by:
Our application environment consists of three basic layers: 1. Third-party unmanaged DLLs that were written before the CLR was invented and maintain a significant amount of information (including...
6
by: Aston Martin | last post by:
Hi All, ********************** My Situation ********************** I am working on project that involves passing a structure to unmanaged code from .Net world (well using C#). Perhaps an example...
2
by: Jon Slaughter | last post by:
How difficult is it for one to integrate unmanaged C++ into C#? I know for functions one can use DLLimport but how does one go about doing it for classes? Do I have to completely reimplement the...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.