关于 RunTime(运行时刻) 和 CompileTime(编译时刻)
Runtime and compile time are programming terms that refer to different stages of software program development. In order to create a program, a developer first writes source code, which defines how the program will function. Small programs may only contain a few hundred lines of source code, while large programs may contain hundreds of thousands of lines of source code. The source code must be compiled into machine code in order to become and executable program. This compilation process is referred to as compile time.
A compiled program can be opened and run by a user. When an application is running, it is called runtime.
The terms “runtime” and “compile time” are often used by programmers to refer to different types of errors. A compile time error is a problem such as a syntax error or missing file reference that prevents the program from successfully compiling. The compiler produces compile time errors and usually indicates what line of the source code is causing the problem.
If a program’s source code has already been compiled into an executable program, it may still have bugs that occur while the program is running. Examples include features that don’t work, unexpected program behavior, or program crashes. These types of problems are called runtime errors since they occur at runtime.
本文介绍了运行时刻(RunTime)和编译时刻(CompileTime)。编译时刻是将源代码编译成机器码的过程,而运行时刻是指编译后的程序被用户打开运行的阶段。同时还提到这两个术语常被用于指代不同类型的错误,如编译时错误和运行时错误。
281

被折叠的 条评论
为什么被折叠?



