Wednesday, 10 September 2014

interpreter compiler?

The main differences between an interpreter and a compiler are that:

  •   interpreters will execute code as you go
  •   compilers will run through the entire code and highlight mistakes if it won't allow it to run.
  •   interpreters can be 2 - 10 times slower
Compiler < just in time compilation < interpreter
(ease of use)

compiler > just in time compilation > interpreter
(speed)

C# is a just in time compilation

Programming phases:
  • Define a task/ problem - specification
  • Plan your solution (find suitable algorithm to solve it or data structures to use) - design
  • Write code - implementation
  • Fix program error (bugs) - testing and debugging
  • Make your customer happy - deployment
.NET framework
Common execution engine of many languages, e.g.: C++, C#.

Common Language Runtime (CLR)
Automatic memory management (garbage collection).

No comments:

Post a Comment