What does "At Execution Time" mean?

Asked

Viewed 1,871 times

1

Eae Galera all good? In my researches I always find references to the term "At runtime", But looking for the term to get more information, I can’t locate anything relevant.

I’d like to understand what it means "At runtime", and the opposite of it which is not "at runtime".

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

Below examples of documentation where I found the term:

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

"The guy Dynamic enables operations in which it occurs to bypass type checking at compile time. Instead, these operations are resolved at runtime." Microsoft Docs Dynamic

2 answers

6


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

To illustrate, consider analyzing a code. An error can occur at build time or runtime.

See this code:

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

This gives a "build time" division error by zero, as the compiler can validate this without having to execute the code ("run time"). But if the code were like this:

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

There would be no error at compile time, because the compiler will not execute the mathematical operations, in this case decrease the value of y, but this will give a division error by zero in "runtime", ie when the code is executed.

A remark, in the question has the text "At runtime", and the opposite of it which is not "at runtime" but they are not opposites, it only happens at different times, the "compile time" happens before, when the code in high-level language is "translated" into a low-level language that the computer/device can understand, the other is next when the code is running (running).

  • So these terms are used only for information on how the feature works? does it offer any advantage for application? Performance or something like that?

  • Yes, to indicate an event or status when the program is running or not. If you say something "at runtime", it happens when the program is running.

  • Thank you. It’s kind of a difficult concept to catch just reading documentation.

0

In computer science, tempo de execução or runtime (term in English), is the period in which a computer program remains running. The term Runtime can also refer to a virtual machine that manages a program written in a computer language while running.

The runtime term is a counterpoint to the compile time term, which is a reference to the period when the 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 below it. The initial purpose is to achieve the goal of programming "platform independent".

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

Source: Wikipedia

Browser other questions tagged

You are not signed in. Login or sign up in order to post.