What does "Runtime" mean? [duplicate]

1

Ee Galera all good? In my searches I always find references to the term "At runtime" , but looking for the term to get more information, I can not find anything relevant.

I would like to understand what it means "At runtime" , and the opposite of it is "at runtime."

And what are the advantages to the application, or to the programmer?

Below are examples of documentation where I found the term:

  

" LINQ to SQL is a component of the .NET Framework version 3.5 that provides a runtime infrastructure to manage relational data as objects." Microsoft Docs Linq to Sql

     

"The dynamic type enables operations in which it occurs to bypass type checking at compile time. Instead, these operations are resolved at run time. > " Microsoft Dynamics Docs

    
asked by anonymous 17.09.2018 / 21:45

2 answers

5

"Runtime" or "Runtime" is something that occurs when the program is running basically.

To illustrate, think of analyzing a code. An error can occur at compile time or at run time.

See this code:

int x=1;
int z = x/0;

This gives a divide-by-zero error at compile time. But if the code were like this:

int x=1;
int y=1;
y--;
int z = x/y;

I would not give compile-time error because the compiler will not perform the mathematical operations, in case I decrement the value of y, but this will give a division error by zero at "runtime", I hope I have illustrated well .

    
17.09.2018 / 21:48
0

Computer science, tempo de execução or runtime is the period when a computer program remains running. The term runtime may also refer to a virtual machine that manages a program written in a computer language while it is running.

The term runtime is a counterpoint to the term compile time, which is a reference to the period in which code is compiled to generate an executable program.

A runtime environment is a state of the virtual machine that provides software services for processes or programs while the computer is running. It may belong to the operating system itself, or to the program that runs beneath it. The initial purpose is to achieve the "platform independent" goal.

Runtime activities include loading and linking libraries needed to run the program, optional machine code generation and dynamic program optimization, and program execution.

Source: Wikipedia

    
17.09.2018 / 21:51