This video could not play here.
It may be members-only, region-restricted, or unavailable in embedded players.
C Programming Tutorial #01 Introduction: CPU, Program & Programming Language
Chapters
C Programming Tutorial #01 Introduction: CPU, Program & Programming Language. Welcome to the 1st lecture of C Programming tutorial with data structure and algorithm. In this lecture, I am going to introduce computers and programming. On completion of this lecture You will learn to write a simple “Hello World” program in the C programming language.
The lecture contains the following topics:
ENIAC was massive compared to modern PC standards. - 17,468 vacuum tubes, - 5 million hand-soldered joints. - It weighed 27 tons - Took up 167 m², and consumed 150 kW of power.
Pentium 4(2000) - Intel Pentium 4 Processor - Clock speed: 1.5 GHz - Transistors: 42 million - Technology: 0.18µm CMOS
The Computing Machine: - The computer is made up of a processor and a memory. - Memory can be thought of as a series of locations to store information. - A program is a sequence of instructions assembled for some given task •Most instructions operate on data •Some instructions control the flow of the operations
CPU: Central processing Unit - It Can fetch an instruction from memory - Execute the instruction - Store the result in memory - Program – A sequence of instructions - An instruction has Operation, operands, destination - A simple operation add a, b Adds the contents of memory locations a and b and stores the result in location a
Assembly Language: - An x86/IA-32 processor can execute the following binary instruction as expressed in machine language: Binary: 101 10000 01100001 mov al, 061h - Move the hexadecimal value 61 (97 decimal) into the processor register named "al". - assembly language representation is easier to remember (mnemonic; e.g. - MVI AL, Val)
High Level Languages: - Higher level statement - Many assembly instructions - For example “X = Y + Z” could require the following sequence - Fetch into R1 contents of Y - Fetch into R2 contents of Z - Add contents of R1 and R2 and store it in R1 - Move contents of R1 into location named X
Programs: - A program is a sequence of instructions - This is from the perspective of the machine or the compiler! - A program is a (frozen) solution - From the perspective of a human, a program is a representation of a solution devised by the human. - Once frozen (or written and compiled) it can be executed by the computer Much faster and as many times as you want.
Software development involves the following: - A study of the problem (requirements analysis) - A description of the solution (specification) - Devising the solution (design) - Writing the program (coding) - Testing - The critical part is the solution design. One must work out the steps of solving the problem, analyze the steps, and then code them using a programming language.
C Programming Language: C Language - A general-purpose language - Extremely effective and expressive - Has compact syntax - Has a rich a set of operators - Extensive collections of library functions - Been in use for four decades
C Programming Tutorial/ Lectures/ Course for GATE with Data Structures & Algorithms @ Machine Learning Complete Tutorial/Lectures/Course from IIT (nptel) @ https://goo.gl/AurRXm Discrete Mathematics for Computer Science for GATE @ https://goo.gl/YJnA4B (IIT Lectures for GATE) Best Programming Courses @ https://goo.gl/MVVDXR Operating Systems Lecture/Tutorials for GATE from IIT @ https://goo.gl/GMr3if MATLAB Tutorials @ https://goo.gl/EiPgCF