“编译时间"与“编译时间"之间的区别是什么?和“运行时间"? [英] What is the difference between "compile time" and "run time"?

查看:229
本文介绍了“编译时间"与“编译时间"之间的区别是什么?和“运行时间"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不明白术语编译时间"和运行时间"(或运行时间")的含义.

I do not understand what is meant by the terms "compile time" and "run time" (or "runtime").

对于值类型"和引用类型"的含义以及它们与上述时间"之间的关系,我也有些困惑.

I'm also a bit confused about what "value type" and "reference type" mean, and how they relate to the 'times mentioned above.

有人可以解释一下这些事情吗?

Would someone please explain these things?

推荐答案

编译时间"是指构建代码时-编译器将源代码转换为IL时.

"Compile time" is when you build your code - when the compiler converts your source code into IL.

运行时"是执行代码的时间-对于ASP.NET,是在发出页面请求时执行的. (我个人更喜欢用执行时间"一词来区分它和公共语言运行时(CLR)"(又名虚拟机).)

"Runtime" is when your code is executed - for ASP.NET, when a page request is made. (Personally I prefer the term "execution time" to distinguish between that and "the Common Language Runtime (CLR)" - aka the virtual machine.)

值类型和引用类型是一个完全独立的概念,但是我有一篇文章关于它们,您可能会发现有用.

Value types and reference types are an entirely separate concept, but I have an article about them which you may find useful.

这篇关于“编译时间"与“编译时间"之间的区别是什么?和“运行时间"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆