Avatar of milani_lucie
milani_lucie
Flag for United States of America asked on

Compiler & Interpreter - .NET Framework

Hi,

I know that when you use "csc" or "vbc", the compiler will generate MSIL. Now JIT will translate that MSIL into 1's and 0's. Now my question is : So we have two compilations ? Please explain me little bit.

Thanks
.NET ProgrammingC#Visual Basic.NET

Avatar of undefined
Last Comment
Nasir Razzaq

8/22/2022 - Mon
Nasir Razzaq

> So we have two compilations ?

One compilation and one interpretation

http://msdn.microsoft.com/en-us/library/ht8ecch6(v=vs.71).aspx
Éric Moreau

MSIL is an intermediate compilation which is platform independent.

the JIT takes the MSIL and finishes the compilation specially for the platform on which it is running
kaufmed

@CodeCruiser

Which one are you considering to be "interpretation?"
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
milani_lucie

ASKER
CodeCruiser,

One is CSC or VBC compilation, JIT is also compilation. Can you please specify:

One compilation and one interpretation

Thanks
ASKER CERTIFIED SOLUTION
Éric Moreau

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
milani_lucie

ASKER
kaufmed,

Do we agree with @emoreau ? I think so too. That is the difference between Java and .NET. Am i correct ?

Thanks
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Nasir Razzaq

I was considering JITing as interpretation because it does not convert the whole code to machine code. It converts code as and when needed.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
kaufmed

@CodeCruiser

But it's not interpreting; it's compiling! It's just doing it on demand  = )
Nasir Razzaq

@kaufmed
Yes you are right :-)

I was considering CLR as an interpreter given that it converts and executes code as needed but technically speaking its not an interpreter.