0% found this document useful (0 votes)
12 views

Compiler

About Compiler Construction

Uploaded by

zaryab6742
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Compiler

About Compiler Construction

Uploaded by

zaryab6742
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

ASSIGNMENT 01 COMPILER

DATE 9-11-2024

NAME Zaryab Khan


ROLNO 301-211004
DEPARTMENT IT, CS
SECTION ‘A’
SEMESTER 7TH
SUBJECT COMPILER
CONSTRUCTION
SUBMITTED TO SIR MIRAJ GUL
The .NET Framework is a software development platform developed by Microsoft, providing a
controlled environment for building, deploying, and running applications across Windows-
based systems. It consists of two main components:

1. Common Language Runtime (CLR): This is the execution engine that handles
running applications. The CLR manages memory, thread execution, code safety, compilation,
and other system services. It provides services such as garbage collection, exception handling,
and security.

2. Framework Class Library (FCL): This is a large collection of reusable classes,


interfaces, and value types that developers can use to develop applications. It includes
classes for handling data, input/output, networking, data structures, security, and more.

Working Process of the .NET Framework

1. Source code :Developers write code in languages like C#, VB.NET, or F#.
2. Compilation to Intermediate Language (IL ): The source code is compiled into
an intermediate language (IL), also known as managed code, by the respective language
compiler.

3. Assembly Creation: The IL code is stored in assemblies (DLL or EXE files).


4. Execution by CLR: When the application runs, the CLR compiles the IL into machine
code using Just-In-Time (JIT) compilation, optimizing the code as needed.

5. Execution on OS: Finally, the machine code runs on the underlying operating system.

The CLR also ensures cross-language interoperability, allowing code in different languages to
interact within the same application.
Simplified Diagram of the .NET Framework

While I can’t directly insert images, here’s a general structure you might use:

Application Code (.NET Supported Language)


|
Language Compiler (C#, VB.NET, etc.)
|
Intermediate Language (IL)
|
Assembly (DLL/EXE)
|
Common Language Runtime (CLR)
|
Just-In-Time (JIT) Compiler
|
Operating System (Windows)

You might also like