Compiler Design
Q1. What is a compiler?
answer - A compiler is software that converts a higher-level language to a low-level language /machine code.
Q2. What are the phases of converting HHL to machine code?
answer -
Compiler Design
answer - A compiler is software that converts a higher-level language to a low-level language /machine code.
answer -
Software Engineering
answer - An operating system is software that handles all the resources of a computer system, including hardware and software. It creates an environment for the user to run their programs efficiently and conveniently by simplifying the underlying hardware complexity and serving as a resource manager.
examples -
Let's say we have two apps, App1 and App2. When we start App1, it takes control of the necessary hardware and starts working. However, if we try to run App2 while App1 is still running, we won't be able to access it as App1 is using up all the resources and the new app will freeze. This problem is solved by the operating system, which divides the resources based on each app's requirements.
Currently, the management of resources is in place, but what if App1 attempts to manipulate the data of App2? Such actions could alter the user's data, rendering it unreliable. Therefore, the Operating System (OS) is responsible for ensuring the security of data and the functionality of parallel-running programs.
When a system lacks its own operating system files, there is a need to create additional resources and security management files for individual applications. This can cause the size of applications to increase to more than 100%. However, an operating system resolves this issue, as it is a basic requirement that can be shared.
|
2 STROKE ENGINE |
4 STROKE ENGINE |
|
The cycle
is completed in 2 strokes of the piston |
The cycle is completed in 4 strokes
of the piston |
|
It has
one power stroke in 1 cycle of crankshaft |
It has one power stroke in 2 cycle of
crankshaft |
|
It has
ports |
It has valves |
|
Smaller
flywheel |
Bigger flywheel |
|
Greater
cooling and lubrication required |
Less requirement of cooling and
lubrication required |
|
Parts
are cheap in cost and for same power light weight engine is requires |
Parts are cheap in cost and for the
same power heavy weight engine is required |
|
Uniform
torque distribution |
Non-uniform torque distribution |
|
Less volumetric
and thermal efficiency |
More volumetric and thermal
efficiency |
|
Simple
in design |
Complex in design |
|
Less in
demand |
More in demand |
|
Used in
lawn movers, scooters, motorcycles, mopeds, etc. |
Used in high efficiency motor cycles,
cars ,buses, trucks, aeroplanes, power generation, etc. |
|
|

Compiler Design Q1. What is a compiler? answer - A compiler is software that converts a higher-level language to a low-level language /mach...