Managed Code: Code written in any .net language run under CLR environment is managed code.
CLR provides it's services to manged code
CLR provides it's services to manged code
- Garbage Collection
- Error Handling
- CTS (Common Type System)
- CAS (Code Access Security)
- Code Verification
- Performance Improvement: Decides which JIT to use & assigns to JIT. JIT compiles IL to native m\c code.
Unmanaged Code: Code that does not target CLR environment for execution is UnManaged code.
Language Compilers checks below items at compile time but these are again rechecked at runtime by CLR because
MSIL can be modified by external tools like ILDASM or ILASM.
MSIL can be modified by external tools like ILDASM or ILASM.
- Types
- Stack usage
- Method calls
- Memory safety
- Control flow
No comments:
Post a Comment