CLR, CTS and CLS

简介:   CLR(Common Language Runtime) managed CTS(Common Type System) Implement variable compatible type of COM and define the way of use user-defined type to extend types.

 

CLR(Common Language Runtime) managed

CTS(Common Type System) Implement variable compatible type of COM and define the way of use user-defined type to extend types. Support all possible data type and programming structure, define how to express the format of  .NET metadata.

CTS data type                     

C# keyword                  

 C++/CLI keyword

System.Byte                  

byte

          unsigned char

System.SByte

sbyte

          signed char

System.Int16

short

          short

System.Int32

int

          int or long   

System.Int64

long

          __int64      

System.UInt16

ushort

          unsigned short         

System.UInt32

uint

  unsigned int or unsigned long     

System.UInt64

ulong

         unsigned __int64 

System.Single

float

           Float

System.Double

double

          Double

System.Object

object

          Object&^  

System.Char

char

          wchar_t

System.String

string

          String^

System.Decimal

decimal

          Decimal

System.Boolean

bool

          Bool

CLS(Common Language Specification)Define sub-set of common types and programming structure which is supported by all .NET language.

 

BCL(Basic Library)

 

Encapsulation kinds of basic types(Thread, File I/O, Web API, GUI desktop API, Data access, Security, Remote Handle API)

 

CIL(Common Intermediate Language)

 

C# compiler generate the CIL.

CIL---JIT compiler--->CPU instruction.

Using ildasm.exe in VS command to see the CIL code.(Ctrl+M: see all MetaInfo)

BTW, Reflector can see all the managed code.

目录
打赏
0
0
0
0
20
分享
相关文章
RA8D1-Vision Board上OSPI-Flash实践
【10月更文挑战第7天】Vision-Board 开发板是 RT-Thread 推出基于瑞萨 Cortex-M85 架构 RA8D1 芯片,拥有Helium和TrustZone技术的加持,性能非常强大。
小程序 define is not defined
小程序 define is not defined
196 0
关于CLR、CIL、CTS、CLS、CLI、BCL和FCL 的区分与总结
关于CLR、CIL、CTS、CLS、CLI、BCL和FCL 的区分与总结 如果要想深入学习.NET平台,那么标题中的这些关键字对你来说并不陌生,这些名词构成了.NET庞大的生态系统,为了宏观认识.NET平台,学些.NET架构体系,针对一些常用常用名词的理解是很有必要的,未必强行记忆,但至少要知道它们的含义。
2210 0
汇编(七)[bx]、 loop指令、debug与masm
汇编、[bx]、 loop指令、debug与masm、汇编程序
4483 0
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等