![]() |
购物专题 | 基金专题 | 性专题 | 饮食专题 | 教育专题 | 生活大参考 | 园林资讯 | 园艺库 | 健康专题 | |
| 论文专题 | 家庭养花 | 园林景观 | 盆景奇石 | 激情图库 | 农业资料库 | 园林古建 | 英文站 | 花卉栽培 |
是不是就是为了支持跨平台特性?
---------------------------------------------------------------
托管了,程序因为内存访问,类型安全方面出错的机会就少了
---------------------------------------------------------------
都有啊,现在的MONO就可以让.NET的程序在LINUX下运行了,呵呵,不错不错
---------------------------------------------------------------
自动化内存管理,类型安全...
---------------------------------------------------------------
对于MS来说也多了一层控制对手或者开发人员的利器~~
---------------------------------------------------------------
开发简单的东西比VC简单,开发难的东西比VC难
---------------------------------------------------------------
"开发简单的东西比VC简单,开发难的东西比VC难", 就凭这句话俺就服了你! 绝对是经验之谈.
---------------------------------------------------------------
托管也就是不用管,方便了,注意力集中了。
---------------------------------------------------------------
http://en.wikipedia.org/wiki/Managed_code
Managed code is code executed by a .NET virtual machine, such as Microsoft’s .NET Framework Common Language Runtime, The Mono Project, or DotGNU Project. In a Microsoft Windows environment, all other code has come to be known as unmanaged code.
Managed refers to a method of exchanging information between the program and the runtime environment. It is specified that at any point of execution, the runtime may stop an executing CPU and retrieve information specific to the current CPU instruction address. Information that must be accessible generally pertains to runtime state, such as processor register or stack memory contents.
The necessary information is then encoded in Common Intermediate Language and associated metadata.
Before the code is run, the Intermediate Language is compiled into native machine code. Since this compilation happens by the managed execution environment’s own runtime-aware compiler, the managed execution environment can guarantee what the code is going to do. It can insert garbage collection hooks, exception handling, type safety, array bounds, index checking, etc.
see also
http://blogs.msdn.com/brada/archive/2004/01/09/48925.aspx
---------------------------------------------------------------
最实际的好处就是申请内存时管杀不管埋……
---------------------------------------------------------------
拜托你不要管了,让微软去管吧!
---------------------------------------------------------------
这中优点显然被夸大了,内存回收在C/C++中有那么可怕吗,值得这样大张旗鼓地宣传?
浙ICP备 :07003766号 Copyright © 2001-2007 JUBAO163,All rights reserved. |