Windows Programming .NET Diagram.


66 views
Uploaded on:
Description
The pattern to bolster OS-free parallel code is to arrange the source code into ... All MSIL code are JIT-aggregated to local parallel code before execution. ...
Transcripts
Slide 1

Windows Programming .NET Overview Yingcai Xiao

Slide 2

From the Webster\'s New World Dictionary: 1. A man who figures. 2. A gadget utilized for figuring (an electronic machine which by method for put away guidelines and data, perform fast, frequently complex computations or orders, connects, and chooses information). What is a Computer?

Slide 3

Programs: stored PC directions for information preparing. Programming = Data Structures + Algorithms Professor Donald E. Knuth http://www-cs-faculty.stanford.edu/~knuth/What is a system and what is modifying?

Slide 4

Windows Programming: Program for the Windows stage? Program for the Internet on the Windows stage! What is Windows Programming?

Slide 5

.Net is a structure for creating OS-stage free, programming-dialect autonomous, web-empowered, disseminated applications. What is .NET?

Slide 6

Source Code for Language 1 Source Code for Language 1 Language 1 Compiler on OS1 Language 1 Compiler on OS2 Binary Code for OS1 Binary Code for OS2 OS1 OS2 Traditional Compilation (Linking)

Slide 7

Common Binary Code?

Slide 8

The pattern to bolster OS-free paired code is to aggregate the source code into the twofold configuration of a transitional dialect. Furthermore, to give a mediator to the middle of the road dialect on every OS to interpret the double code of the halfway dialect into the local paired code of the OS. OS-Independent Code: Intermediate Languages

Slide 9

OS-Independent Compilation: Intermediate Language Source Code for Language 1 Language 1 Compiler on OS1 Language 1 Compiler on OS2 Intermediate Binary Code Intermediate Code Interpreter OS1 Intermediate Code Interpreter OS2 Binary Code for OS1 Binary Code for OS2 OS1 OS2

Slide 10

Java Intermediate Language: Java Bytecode Java Source Code (.java) Java Compiler (javac) on OS1 Java Compiler (javac) on OS2 Java Bytecode (.class) Program explanations are translated each one in turn amid the run-time. Java Interpreter on OS1 (java) Java Interpreter on OS2 (java) Binary Code for OS1 Binary Code for OS2 OS1 OS2

Slide 11

A translator deciphers middle of the road code one line at once. Moderate execution. A JIT (Just-In-Time) Compiler arranges the complete code at the same time just into local twofold code before execution. Speedier execution. JIT Compiler

Slide 12

JIT Complier: Java Bytecode Compiler Java Source Code (.java) Java Compiler (javac) on OS1 Java Compiler (javac) on OS2 Java Bytecode (.class) All programming articulations are gathered at aggregate time. Java JIT Compiler on OS1 Java JIT Compiler on OS2 Binary Code for OS1 Binary Code for OS2 OS1 OS2

Slide 13

MSIL: Microsoft Intermediate Language Source Code for Language 1 Language 1 Compiler on OS1 Language 1 Compiler on OS2 MSIL Code .NET OS-Platform-Independence MSIL JIT Compiler on OS1 MSIL JIT Compiler on OS2 Binary Code for OS1 Binary Code for OS2 OS1 OS2

Slide 14

All MSIL code are JIT-ordered to local double code before execution . No run-time translation, quicker execution. JIT Compilation in .NET

Slide 15

A Common Language?

Slide 16

To make .NET dialect free, CLR (Common Language Runtime) is characterized as the runtime environment. CLR characterizes CTS (Common Type System) which ought to be trailed by all dialects to be utilized as a part of the .NET structure. Linguistic structure: int, for, .. Semantics: numerous legacy is not permitted in CTS The code that takes after CTS standard is called overseen code. general C++ bolsters different legacy managed C++ does not bolster numerous legacy .NET Common Language Runtime

Slide 17

CLR: Common Language Runtime Source Code for Language 1 Source Code for Language 2 Language 1 Compiler on OS1 Language 2 Compiler on OS2 MSIL Code Confirming CTS (Managed Code) .NET Language-Independence CLR on OS1 CLR on OS2 Binary Code for OS1 Binary Code for OS2 OS1 OS2

Slide 18

Source Code for Language 1 Source Code for Language 2 Language 1 Compiler on OS1 Language 2 Compiler on OS2 MSIL Code Confirming CTS (Managed Code) .NET Architecture for Language and Platform Independence ( fan-in and fan-out on MSIL) CLR on OS1 CLR on OS2 Binary Code for OS1 Binary Code for OS2 OS1 OS2

Slide 19

CLI (Common Language Infrastructure) CLR/CTS for Everyone?

Slide 20

A particular characterizes a domain for various abnormal state dialects to be utilized on various PC stages. Made by Microsoft taking into account .NET, institutionalized by MS, Intel, HP and others, confirmed by ECMA and ISO. .NET is an execution of CLI for desktop frameworks. .NET Compact Framework is an execution of CLI for convenient gadgets. Open Source executions: Mono advancement stage (Novell), Portable .NET (dotGNU) CLI : Common Language Infrastructure

Slide 21

Source Code for Language 1 Source Code for Language 2 Language 1 Compiler on OS1 Language 2 Compiler on OS2 CIL (Common Intermediate Language) Code Confirming CTS (Common Type System) CLI (Common Language Infrastructure) Specification Open Architecture for Language and Platform Independent Programming CLR for OS1 CLR for OS2 Binary Code for OS1 Binary Code for OS2 OS1 OS2

Slide 22

Even however, CLI/CTS/CLR can make a project written in any dialect to keep running on any stage, the whole program (counting all libraries utilized) must be on the stage before running. Could we have part of a system on one PC and another part of the same project on another PC? Circulated Computing. A system is separated into various parts and diverse parts are appropriate on various PCs. e.g. virtual surgery.

Slide 23

Web Enabled & Distributed

Slide 24

To run disseminated code on the web, we require a standard approach to enlist the code and a standard approach to get to the code. Enrollment: UDDI Registry: Universal Description, Discovery, and Integration. Access: SOAP: Simple Object Access Protocol WSDL: Web Service Description Language .Net is Web-empowered and Distributed

Slide 25

.NET Architecture for Web-based Distributed Computing Client 1 UDDI Registry 2 SOAP Client 2 UDDI Registry 1 SOAP Web Service 1 WSDL Interface 1 Web Service 2 WSDL Interface 2 WEB

Slide 26

.NET Passport (one login for the entire Internet) www.passport.com (keep running by Microsoft) www.ubid.com (An online closeout shop utilizing Passport web administration) Windows Live (one area to get all you require from the Internet) http://get.live.com/(keep running by Microsoft) Windows Live ID is supplanting Passport ID. Web Service Example

Slide 27

Common Language Runtime (CLR ): gives the runtime environment to MSIL code. .Net Framework Class Library (FCL) : gives standard code to building basic .Net applications. Classes in FCL are gathered into namespaces. .NET Framework Compositions

Slide 28

.Net Framework Class Library System Windows Web Data (Database) Enterprise Services XML (Data Description) String, … Forms (GUI) UI Services Connection DataSet XmlDocument

Slide 29

The most imperative gatherings are "the pack of four": Windows Forms: for building GUIs for .Net applications, dialect free. ASP.NET: Active Server Pages for .Net, for building web-available applications. ADO.NET: ActiveX Data Objects for .Net, for getting to information in a database. Undertaking Services: for getting to COM+ administrations (exchanges, object pooling). .Net Framework Class Library

Slide 30

.Net Framework Class Library Common Language Runtime Browser Accessible Remote Applications Local Applications Other Applications Web Services Distributed Applications .NET Application Types OS

Slide 31

MFC: Microsoft Foundation Class, code reuse inside an application (process) COM: Component Object Model, code reuse crosswise over applications (forms) DCOM: Distributed COM, code reuse crosswise over frameworks COM+: Internet-based Enterprise COM, code reuse over the Internet .NET: COM+ 2.0, all COM+ administrations are accessible in .NET, even those not in oversaw code, interoperable with COM-based applications .Net & COM

Slide 32

Applications giving access to individual data over the Internet. Travel permit (confirmation) .NET Inbox (email) .NET Documents (Internet-available capacity) .NET Alerts (sending ready messages) .NET Calendar .NET Contacts .NET Wallet (installment advise) .NET List (schedule) .NET My Services

Slide 33

Internet Information Services (IIS): web server Commerce Server: e-trade server SQL Server: database server Exchange Server: MS trade administrations Mobile Information Server: remote server Internet Security and Acceleration (ISA) Server: firewall, intermediary, … BizTalk: B2B (Business-to-Business) server .NET Enterprise Servers

Slide 34

A Common Language for the Internet (free of assemblage and interpretation)?

Slide 35

Tim Berners-Lee ASCII content (ISO/IEC 8859-1) is stage autonomous. HTTP (Hyper Text Transport Protocol) e.g. GET wp.html Assembly Language for the Internet HTML (Hyper Text Markup Language) High-level dialect for the Internet) hyper content: message that depicts other content tags: sort meaning of content in content <title>WP</title> all labels are predefined in HTML only framework characterized sorts, no client characterized sorts Recognizable by a wide range of PCs. (Internet) A Common Language for the Internet

Slide 36

XML (eXtensible Markup Language) Allow client characterized labels (sorts) SOAP (Simple Object Access Protocol) Standards for characterizing objects for the Internet Based on XML A Common Language for the Internet WSDL (Web Service Description Language) Standards for depicting web administrations for the Internet Based on XML

Recommended
View more...