Click here to Skip to main content
15,890,982 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear Sir, can anyone tell me what happens when C# starts compile a C# program?

Thank you.
Posted
Comments
Mohammad A Rahman 28-Jan-13 22:22pm    
With all respect, I would like to know, Would you mean, what happens during the compilation process? otherwise all get confused.
Sergey Alexandrovich Kryukov 28-Jan-13 22:33pm    
You need to ask what you really want to know, and have some sense of humor.

OK, it compiles to IL (intermediate language, a type of bytecode).
Asking such question along is not very useful. You need to learn a whole complex of CLR design: what is assembly, IL and JIT (just-in-time debugging), how assemblies are referenced, loaded, how the code is executed (with JIT, this is not trivial at all). It's also good to understand how I gave you some keyword, you can find the answers in Wikipedia. Frankly, even short description if it all would take a really big article.

If you have more specific questions, or doubt while you learn it all, I'll gladly answer. Remember, this is a Quick Questions & Answers forum...

Good luck,
—SA

Yes, I can: it continues compilation.

—SA
 
Share this answer
 
Comments
Mohammad A Rahman 28-Jan-13 22:21pm    
Sorry wrong place :( I was intented to write to the OP :)
Sergey Alexandrovich Kryukov 28-Jan-13 22:36pm    
What's wrong, do you think. :-) Please, don't feel offended and boring; it's hard to be serious, seeing such a question. :-) I'll gladly answer, but please see my comments to your question; you only need to ask correct questions and get some patience. It's easier to ask than to answer.

Cheers,
—SA
(__Aaron__) 28-Jan-13 22:59pm    
The answer you have provided is good :)
Source code is like eggs, and the executable is like an omelet -- the compiler scrambles your code, adds a few things, and subjects it to heat.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900