A
A
Anton_repr2019-07-14 10:21:57
.NET
Anton_repr, 2019-07-14 10:21:57

What happens to IL code at compile time?

Code written in a language, for example, C#, is first converted to IL, and then somehow (I did not fully understand) it is converted to machine code.
And what will happen if you immediately write in IL? At compile time, will code written in IL just be translated into instructions for the processor?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
longclaps, 2019-07-14
@Anton_repr

What happens to IL code at compile time?
It is being created. The compiler looks at the source and creates this same code. Picture from here .
And what will happen if you immediately write in IL?
Get bored quickly - that's what will happen.
At compile time, will code written in IL just be translated into instructions for the processor?
See first answer.
did not fully understand
links

G
Griboks, 2019-07-14
@Griboks

The sources are translated into il code, which is then executed in clr. There is no machine code here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question