class 4

22
PIR sensor Power Supply Circuit Semiconductor Memories Address bus Data bus RAM ROM VONN NEUMANN architecture HARVARD architecture Last Class We cover…. Copyright © 2014 Emtronik technology.| N2/4, IRC VILLAGE, Bhubaneswar, Odisha | Tel: 9853200835

Upload: debashish1135

Post on 14-Nov-2015

212 views

Category:

Documents


0 download

DESCRIPTION

jshskk

TRANSCRIPT

Welcome To Emtronik Technology Making Ideas Work

PIR sensorPower Supply CircuitSemiconductor MemoriesAddress busData busRAMROMVONN NEUMANN architectureHARVARD architectureLast Class We cover.

Copyright 2014 Emtronik technology.| N2/4, IRC VILLAGE, Bhubaneswar, Odisha | Tel: 9853200835Basics of Programming LanguageCompilerInterpreterAssemblerStages of compilationData TypesModifiersBig-endian & Little-endianASCII tableVariables

Today we cover .

Copyright 2014 Emtronik technology.| N2/4, IRC VILLAGE, Bhubaneswar, Odisha | Tel: 9853200835Software

Copyright 2014 Emtronik technology.| N2/4, IRC VILLAGE, Bhubaneswar, Odisha | Tel: 98532008357805Software:- It is a collection of programs.Program:- Program is a set of instructions which is designed for a particular task.Types of software:-1. System software2. Application Software System software:- Which s/w designed for general purpose & which does not contain any restriction in it is called system s/w.e.g:- OS, Complier Application Software:- Which s/w designed for a specific task only is called application s/w.E.g. :-M.S office, tally, Oracle

.Compiler

Copyright 2014 Emtronik technology.| N2/4, IRC VILLAGE, Bhubaneswar, Odisha | Tel: 98532008357805What is translator ???It is a system s/w which is used to convert the programming language code to binary format.Types of translator:-1. Compiler2. Interpreter3. Assembler Complier:Aprogramthattranslatesanotherprogramwritteninahigh-levellanguageintomachinelanguagein a single step, sothatit canbeexecuted.

For example high level language just as C, java, C# translate to machine language which is a form of binary means 1s and 0s.Because we known our computer can understand 1s and 0s.e.g:- Turbo C, Dev C, borland C++, JVM

.Compiler Cont

Copyright 2014 Emtronik technology.| N2/4, IRC VILLAGE, Bhubaneswar, Odisha | Tel: 98532008357805When a user writes a code in a high level language such as Java and wants it to execute, a specific compiler which is designed for Java is used before it will be executed.

The compiler scans the entire program first and then translates it into machine code which will be executed by the computer processor and the corresponding tasks will be performed..

Interpreter

Copyright 2014 Emtronik technology.| N2/4, IRC VILLAGE, Bhubaneswar, Odisha | Tel: 98532008357805What is interpreter ???Aprogramthattranslatesanotherprogramwritteninahigh levellanguageinto machinelanguage/ binary format in step by step. Each time when an interpreter gets a high level language code to be executed, it converts the code into an intermediate code before converting it into the machine code.Each part of the code is interpreted and then execute separately in a sequence and an error is found in a part of the code it will stop the interpretation of the code without translating the next set of the codes..

Differences between compiler and interpreter are listed bellow

Copyright 2014 Emtronik technology.| N2/4, IRC VILLAGE, Bhubaneswar, Odisha | Tel: 98532008357805The interpreter takes one statement then translates it and executes it and then takes another statement. While the compiler translates the entire program in one go and then executes it.

Compiler generates the error report after the translation of the entire page while an interpreter will stop the translation after it gets the first error.

Besides the processing and analyzing time the overall execution time of a code is faster for compiler relative to the interpreter..Assembler

Copyright 2014 Emtronik technology.| N2/4, IRC VILLAGE, Bhubaneswar, Odisha | Tel: 98532008357805It is system software which is used to convert assemble language instruction into binary format.

What is self/resident complier ?

If a complier which runs on a computer and produces the machine codes for the same computer then it is called self compiler or resident complier.

If a complier that runs on a computer and produces the machine codes for other computer then it is called Cross Complier.

.Stages of compilation

Copyright 2014 Emtronik technology.| N2/4, IRC VILLAGE, Bhubaneswar, Odisha | Tel: 98532008357805.

Basic types of data types are:-charintfloatdoublechar - data typechardefines characters.e.g :- { char Letter; Letter = 'x'; }Data Types

Copyright 2014 Emtronik technology.| N2/4, IRC VILLAGE, Bhubaneswar, Odisha | Tel: 9853200835int - data typeintis used to define integer numbers.e.g.:- { int Count; Count = 5; } float - data typefloatis used to define floating point numbers.{ float Miles; Miles = 5.6; }

Data Types cont

Copyright 2014 Emtronik technology.| N2/4, IRC VILLAGE, Bhubaneswar, Odisha | Tel: 9853200835double - data typedoubleis used to define BIG floating point numbers. It reserves twice the storage for the number. On PCs this is likely to be 8 bytes. e.g:-{ double Atoms; Atoms = 2.5000006; }

Data Types cont

Copyright 2014 Emtronik technology.| N2/4, IRC VILLAGE, Bhubaneswar, Odisha | Tel: 9853200835The data types explained previously have the following modifiers.shortlongsignedUnsigned

The modifiers define the amount of storage allocated to the variable. The amount of storage allocated is not cast in stone. ANSI has the following rules:short int