Presentation is loading. Please wait.

Presentation is loading. Please wait.

Languages and IDE (Integrated Development Environment)

Similar presentations


Presentation on theme: "Languages and IDE (Integrated Development Environment)"— Presentation transcript:

1 Languages and IDE (Integrated Development Environment)

2 Compiled Languages Compiler (Including Linker) hello.cpp (high level) hello.exe (machine) Result Executor hello.exe

3 Interpreted Languages Interpreter hello.bas Result

4 Hybrid Compiler-Interpreter Interpreter Source code Result Compiler Intermediate language code

5 C++/CLI (Common Language Infrastructure) CLR C++/CLI Source Code Result C++/CLI compiler MSIL code This applies to C# and VB.NET too. CLR = Common Language Runtime CIL = C++ Intermediate Language MSIL = Microsoft Intermediate Language

6 About C++\CLI C++ (.h,.cpp, complied) C++/CLI (compiled to MSIL, not machine code)(not interpreted at runtime) C++ vs. C++/CLI –Unmanaged data vs. managed data Latter: allocated by an application, deallocated by CLR’s garbage collector –Unmanaged code vs. managed code Managed code: memory management, code access security, multi-language integration –Garbage collection

7 .NET –Application development technologies Console appl., Windows appl., Windows service, web appl., web services –.NET base class library –Common Language Runtime (above OS) For all languages and all platforms Execute code, add common functionalities Managed data, managed code Runtime services: code verification, garbage collection, etc.

8 .NET Advantages Language natural –Many non-MS languages can use base class library –Common Type System (CTS) –Common Language Specification (CLS) Minimum subset of CTS for all the.NET compatible languages Platform independent –Port.NET Framework to non-Windows platform w/o recompiling –JIT: Just-In-Time Compilation –A JIT compiler translates bytecode into the native machine language.

9 IDE(Integrated development environment) Microsoft Visual Studio for C++

10 Examples How to use Microsoft Visual Studio 2012 Use Visual Studio to create a simple project after class

11 backups

12 Play with code 1. Console application –Output more –Read so to pause Console::Write(L"Enter the constant term(terminate): "); Int c = Double::Parse(Console::ReadLine()); Console::Write(L"Verify"); Boolean y = Double::Parse(Console::ReadLine()); 2. Windows Form Application –Use different form name


Download ppt "Languages and IDE (Integrated Development Environment)"

Similar presentations


Ads by Google