Sunday, October 25, 2015

IDE & Compiler

IDE & Compiler

Introduction:

Before you start you'll need an IDE and a compiler. Luckily Microsoft have already created that for us when they decided they'd create their language they already had in mind that the users of their language would need to have some kind of environment to create their codes on and that's what's called Visual Studio.

There is a difference on an IDE and a compiler thought and it's important you understand the difference.

An IDE (Intergrated Development Environment) is an application which you can use to produce your codes in. Technically you could do them in ex. notepad (Some actually preferre to use Notepad++) however that will only slow down your work, because an IDE usually include things such as project creation, project explore, easy binding to a compiler, syntax high light, auto-indent etc. Visual Studio already include all that and more. If you're developing C# then Visual Studio would be the best IDE, but if you have problems with it using too much CPU or being slow then an alternative IDE could be the SharpDevelop or Mono (Which is available for Linux, Mac and other OS's as well.) Though Mono requires the Mono C# compiler and I'll not be teaching anything related to Mono, so I'd suggest not to look into Mono unless you want to be on your own.

Visual Studio Image:
[Image: code.png]

Source: http://www.otakusoft.com/wp-content/uplo...0/code.png

A compiler is the program that we use to convert (compile) your code into machine code. In our case we do not compile to native code (machine code or assmebly if you preferre to say that.), but to the CIL or MSIL. The CIL will then compile the IL code into machine code at run time. I could be wrong at this as I've never looked it up that much and it's just from the tip of my tongue I say this as I felt too lazy to search.

To get started you'll need the IDE and compiler for C#, if you do not have Visual Studio and do not wish to buy it then you can get the C# Express version which is free. After 30 days or something you'll have to activate it and you can do that by signing up and then you'll be send a free key which will activate your product permanent.

Downloads/Links:
CIL
C# Express Download (C# Express 2012)
Sharp Develop Download
MonoDevelop Download

Original 

No comments:

Post a Comment