0 ratings0% found this document useful (0 votes) 38 views28 pagesPps Unit 1-1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
B 7 ee
Dire Gander
| y eleatsnic. deatce
igntal Gm dey ye om \
Dint P im & y donee, procest i
Ohuch accept impel: i
ard foroduce uct pal ton boeravy
‘ age ea ard ft Ore
A Gmpuder?*te Grobratin oY fodoor 1
Reeourcer» which — tegyade dogette Ond por
Aemcliovalit ian do dye wer.
donde’
® Hadwate |
© Boftedorye- ;
@ Hachoete:~ fldacge seprerent’ dhe ply! ove |
deraible @ 9 Computer eyerem
. ‘ 4
je the Comporant that Gm be
Lemmple 2 qd Harddve :
; © 2crel @ paAm/Rom CS CPV
peen and do uched .
|
4o
® Mowter
© Keyboard
f i g IF Ly
© mMoure © Ha
d+ wore! -
_eegrooe laffaoae otis
tet Umatudione. tha
eye Dourcerr do fernctin
axe Allain
© ppercdir Lyalemn @ Gampl tev (a Sinker O Jeada, ele.
YN a
(® epeakey
® Parte
pet q the popame anel |
ssequiced by the lard
Example f attaore} he baste ei 19 thot help longoronsing 9
eeke aye eee the ete e ¢
the Gmpda- there dtenctional Ganpsrand 09 pila a
| tie
eo BH dake Snped via np cebicese.
PE ond, aati. fe poe
i ee @ dale.
po Rips ello gorrclucene dhe output and hd pe
viewalicing ifs 3
eriiyy Seni s- 9+ ng oe and Grekucll me
durtirg dhe orrcedorrg:
OF cp
ee fo a
Reailler | ie
= coI i
Be case depth Ged er! binary
Hat Comp Umokreleit . ome 4 the Gamer” trap
deoicer coe Keyboard ; mouse, &CaNE » Ag ht Peon ele
ip cad the boon the Gapder
the” “OnPHaa
CPV! she cpo
hecaure i} fe the Grtel Cente F
jingesrvestion povoiaee by dhe Jinpe |
cpo cess the
devi ceat. CPO -
@ Fast detchen the Soa|ruchtone femm the cps OY
them to that 4 ovay be
And then ter patet?
Soler pha te to be
® 3 sequel dea te fetched
dene
| for ememnary 077
| Com pubediond
inp dleoice:
© then gle cpo pelgoorme the Fequite
om] Ueplacer
© Adtet cam putt one y, pfove? the
tf on game culput eater
Gmpwrante 4
paRere cpo:—
+ the cpd amelete ome tree onaln
Grnposrarsis qhal o7e a2 olladirg—
oudpaD fizithernaltc are degic omit ~ phe ALD as ii
anvitheralic and opted) operalione « Azitherabtc Cal
tmcluder addition, pabehaolion, Multipli@aten etc. j
peal Gualihion iimuelbe arelationg & egicel operations,
© Garbo| Ovit!~ he Cd te seapontble fev fallotheg
Aetioitter
—® 94 Coadinater ard mire the flo & cea ane
Qwefruckine — Grong yaruisut omit of ao Computer
© 94 Gnide al) she operation? f ALD , an
Gnd np fospal ueret 8 cory sien
pO 9} dake care g exeading oll the Srehuchin
, Bbred im a progam by qitchiag the Inebruchin ¢
decoding the tmehuchion” avd gending the 4 p powpatel
Control eiprale do otha — dermctiond ~ ori. Omdlle fhe
Se quid operation We Groplelel,
| © Rieter 5 ply cn fel tte hla, tinction al
| ada gq _tmemer docatim hth te do be) dae
ced by the acter. Reatpleve @n_ be Q dh
ret (isbt, 32bit, G25t an goon).
\
| @ Geneal parpore coi eger Reottler s~
| There aye too ofr type 4 Reoiatea, —Genero! pturpore Reeelev*—
Gir ie used do
appear proceotg «
rlevrridbinle mjeaull edo: chusuing
@ Acarmulalor (Aco :—
94 te fhe mnlcc seuiotey im cpu
Onl Qmiame cne ¥ operand? q om operation - #o
be perder jm the ALU: ee oom
S) Oulpet Ue Oe
i gt ip ampere 4 wf dete? B-—
attache! do dhe Gmpedev. S4 gnvevt8 the SS
mm CPO h uniary
bitra oped clo ee “
Under derdable form ome exonple? i {Nore 7
porter gpake ec
Batson oF Shue ornarcet U
failed 8 Porccony
dela andl Jenebsuctions J , G
Meernory Sprteyenal§ nerrr'] > ard /ox Ravdarm Acces
cOhenesey 2 prprom (2 preceded » We caia +
oo te enero) gnd ule plovedl jm phe rncmeg
. > epecubtn. f
gical od
gill fhe ert 4 ye
mio yeh Jools? alee
° abe appeetlnetgenne
Some quel 6GE endo Gomgerre
sdulasemareamtinhrantion -eoveet
10 Fereplneee:
Ab—16 In!
Sdonge dete nage coices 2 om hendleoeore
guch 12 capable q Ic :
ow Tem poverty
rere we +0 &
Geapcl ev pyedern,
@® Pray gkrage device /Foier or crmeneery | pam and ROM,
© Sere elpoge deoice/ Secerrdary mmersrery [ouch of Havel lek
cp , YD et.
pe 4 Aoege desic® Use er
nod enpentind
J mass emenstory | ~ Pearcy Ane on le
kent qa Compiler pystem becouse untthad 19
Gopater arn rot perder even — giempley Jocks
/ anernry Fe dhe nent Which 1? cizedaly AC
\
By phe CPO During pparpiar exeottiom: |en meee pa i
‘ avd dada ab the CPd Rapivet! ditsiogeey
Ten she oe Qve edoved ne postrrany
Srmermnony - Byyaeany rneneny 1? Of two bastc 4y per given a9
Belo —
OD Abladile Memayi= gre data dm
*Nomiehed - when ever the power eupply
OK- RAM te an Srowpe g Vole te anamay.
© Ne able oy 9h. dn Jn ron - VOM
ue ood vanikhed even iohen pov eupely bo cd 908
oh Rom re an €xomple 4 ran Volatile Mmemery -
VYalabtle menser
do J ype
ARMM gh te alo callal ao Red/wamtte emery
| OD fhe pagum ord cbt that O71€ aeciebed bey
the CPO dluscivg the €xeadon ot a parm
oye Loe tm a RAM
@ gt 12 & Volatile merry $6 the data ce
Jogred when the parm poder te danened of
R Rom —
——— (994 (e cleo Called of Reacl only cmernory
© 94'e ete cructal dongpemaion emerntial JO bret
oparcde the Gmpder 2ycem Like the pargronn escort!
do bod the Gompuler
® atrce gt te momn- volatile cmeray 9 Redarne
fhe dil even when the pader ie furore! Okb-
afaa LRM Thal gear dela Tai? In te ornermoy 00 levy af powder Ie bal
Anan aye 4 oneney tat] PHo009 ¢ dlesice? "err
sein ite conlente phen
| fowev_ ie tev ell: ma
poe spe b Rriwary elereg e crnenrery oe Al oon ae
‘ DRAM Dyan © Ronde accor
| b F 4p lypically used fee de}. 6 program Code
Nolatle Dy Veluife Pin vaste we Gapter poocersey needa +o
— RAM Rom |. dimeion
ald as
— Dram, SRAM ,AVRAP Rorn- PRom, EPROM, E6Rom,
© Termporary a ten Vet | 3+ pertrop nant ae
2, ape fr opeial fom Banc olertup Proce”
3. \ledatile k IPs alon- Vola]e
} 4 Read and eozule 4- only Real
5. Ram pally fede Per Relationly elgder-
| |
m® dary omemory }- |
ee =e Secrchn Iopnemory le @ Computer
premny dha ute pln ~valtile t mature ard sg
n+ dlizedaly Acer by the prscenrsr (epo), Data tm
Lecarclary amerioy moat be Copied Tinta poaimaty
etevage RAN before idle cue
Pencory anenory ore glooer ard cheaper <0 4 |
Mhernocy on Gn paged do porary memory Moye
evel getenchrry Omeqnmes one eastiol!y dary es
Oapoaty — ag ‘Gp to Pauenary Mecnen'etHureaecrch \-
< ne Meme
4 yoru type 4 cmemmer JR
uldh she Comp ayelem Roved om epeed, Capacity
ard Get Im Imcrening / decvectiny adel .
a cache MEY =. cmenoy lie bJed RAM ard
pom.93 used Jo plore secently used dota ond
Ingtsuctione by pO wWhenewer ams coho 2? ah ia |
the cpo, st ve fiiet Joke yonto cache rynenony
b
J
amd Jf avialable ud te wood by ceo 34
Q@ehe Janta ook:
deda 2 cred ootable lv
indo «maim ommerory OF A qekhed fae these
Pince Gache memory SE facies thon RAM 20
Jdea se flat x draquently toed cata yesidlen tm
Jere me he oor all pn cenotyg.
ache it alt,
olen
4, the ompete “Sofooye
Sten soll fpplicaltcn LA MOoI0 }
W Operecti ayalem w, of Poa
®© Compiler _ fai ‘
® Faderpredey Nay
a tinker © DBS (0 ala Bane ay
| ® ocolev ae
:
o Spetiry Ayelem' sopaain] eyetem He a “pyar
eboage het tor ocle oo OM Gren gare blu Haid wane
omc wer
seared dike amen y » CPO
@) JF Trarager ayptem
gmp gulp ate labygvem on huh athev copplicetron
|
te
Gi) 9+ jelep
| Meee or Gnelall Tand exeeé popelly i
@® Lame Exam pee 2 opts ef gyalem*— Doe, windowe.
Uru, ek-
:
| Farictlone ¢ opeaching ayet emt (9 peacttiing ayahem VA
| ae poable ~ porting be feration —
& Electacally &tazab)
ly ‘agable gyend onl om 18 ™
it i tm which Le eho ate aed
a “ae Ee deoke 40 publable electic girl
Ailey eycamoing the dente Qn be 74) Peet reese
© Memory proeragei
v File (rom ment
@ to a
Gop tledyer!
Y Nel Work v
wo Secusuty © & Protection forragernent
ee Compiles! Compile vw a pana tha cmvert the
Corla0 apsiilter tm hi 1 Level sJoeguag® CO e cnet) | Suike C,t%
Ino, ek f un do ded ood Jouege wy 5 Like 9
at and _Moclu'ne larqucge} « mnachene ging
Bray Code Ohh ve Onder Ge” wydlable by
Pyeng. aoe & Gmpilee e fr © s
= dn oO? ¢ apblec » Taboo clett , GO ae
algo » cu thre be fomocene Compler Gdextihy
ard >e any 27 t
ay oy im the aaurce page
Cent) — sar fe ye tele
vee Cade, %
= aia “gd pesjnn [
Error? ,
wae
onealy Se, |
SfOmambly language Gale rte freehine rrp
Code. ~€e Tithe Arern. , Gro Are, Mrarcall Aare.
erie
fezeorbly level _longuoge -
ej Aecerm
fatic pom {Preparing
Jajel eae Cj lege. € pereara
crntbnopenceeter cro) that rnc the @mpuh
» beical ond Grdre! actertier. A” procestar Ov bare! only
oa lorequoge Gonphuctiere euch I atr oy A vod
Os . Hacer, frechine Jarguge 1? foe Gm” ov. Ne
|
by huecramg . Phere dhe . angio ge ee.
‘ a oJ NT ne — Inohu chine
lrrguage (zeal hed geprtecerd& yor OS
lin beprnbglic. Coder Which oe sonore U pleenclale by
h ee filleotey aye game eran g cohembyy
me Pires INCA Gnowement the waive Indl
DEG B ~ Decremerd “ *
~@
Mov ¢,5 ~ Stowe the cnlie ce
> 6
1.ae
'p Prather
C I
nagek© Grterpacter: - An Joder paclex renee
which charlate_and__exeate the. ———— Tis
te hath level sergeey?) dine by Line: 94 “Grttnicllt
chernolatirg the pregem™ ordi! the piel Snar a
anode. “Ag «HE get# en clea ie olop& fix
he » eles ene
python , Lisp , Ruby »
aggek kuch ae
| Grlerpaelel
Gmpller ye idly
D 94 cmvert HLL Gde to © gt Gmverle 40 machine tl
ad exenté |
Machin Loe Code beat” A
{mM
feo Ne sale In execu ' |
| © Firal cup 18 poaching © fire! opel yn Remld
oer 2 @ Poce? \Ime 4 ey ond
catty Pooper”
Par us + SM cfrnelat © ome
hele lavto prachine Cede. | a de.
® Relestival’y geet pool © Retal (oad
natn Lan Debus he
ing tk igual |S pebouyg ma
ee be Comper ok
ploder joroceated ‘
(mp odtvel ly
p oe tin),
Debiging ho Atrel gov ios * : ‘ -hinkev nd Loader?
ueker ond ender oe the
gmpame that playe 0 ompfos ele ion iia hs
propa. She aunce de g a ppm
fee an rs F Acgcarlole ’ Lenker + decoder y
orev > bene the erecedton, Follobing te the
aie ae Gy oe aorte ee Into Geueable lode
ten atom
To]Met169}
M6 bo} Feo
5 ooollliele!
forsee Code.
Gehl a
Y e 2 E oe Merer
| F
b ak.
Ubyb Enetdon
GA: Fol Nether ;
ye es on *
L— Nl ooel oj Mee FI
the abeembiley ey Gmpiler generate the object”
Gde 4 4 pouvee ar! ferdo tt cuw fo the
diinker. The linker takee thie cect Code arab generadey
the eretwbable Code for the
oH do the
porcprom ond
loader aglin ig te pire ae the
i a: >a |tinker 2 1
inka Ve aqespmerble ov Linky 3 eran ip hernet enemy
andl object crnodule
eed
=e g dhe ram that haa a
cust sjertdde whe emai hm 4 op
Sri fe sepa 4, the ede, A ta
eeucteble file to the cain mernoe doc executhion:
3 dlooater We aren gpacee do He , xeoutable
Code in the rau eto
Pource code Coneict ob i
ptedermennt pot oe contin by
ja le, oo A
re ast on in the 6
cence larguape pnehactiont OF
ne ile mame
eee
> Grlewn the Reuse
perce es
the
q ded ©
Cane) 2 le 12 eae] 4
4 sed +o be Compile eH oe
oe Be
a phen the pounce toe file 18 Qurmpile ,
a ip saved unto binary mnachine Jang uoge tede.
die i te Called a ebiect code fie foeged H/
byect yredde. the ebjed Gee gile ooh
_ aQa Requence 4 forebuctina that poocenver (cp0) Gort
umderplend> there object ile Gntasmn™"Onoyecolieel external
sceferencer tat oye orequtsged do be lenk gyal”
othey objet file ot tébvavien.
Erecutable Code: — ,'
Fhe ebjec rmnedules/ filer 1€ not
yet steady Jor execitton. the object dile te Link anh
odthey object sles e+ and/o7 Librartee « the hinkng
te done by the linker. after shinkog + dhe tinker
prvdluces am eecdable de whith tle syendly y )
€reoutim by the prceeeer. Now, thie epeedable fe!
oy ke
led Unto mam amemory by athe Joaden,a
m t® glvem am *
a well dedrnedt geruet 4
Proceed dhrogh ,
sider y goendially _geormirating tn an ed shale: me ;
Pept Algo. rf “ages mm nut 17
weidelloning —poertit “
Oo Timidemes
QB Depinisene’ :
B Fnput a
B © outpt
“O Epectiorrer -
i findlenere t— oe
, hye. algesuth mudd luda deyeratirale |
otev 4 deste mo 4 ote? “03h
Badin! : weg
ey fered 9 Fach plep a Cra algeouth vy amuet a
lee : preeely . deme omel anu be vimanas
rt Hata
© Ip tt— fn flasthern «hao © ort? one gnptt”
- ty
S ie
de :— fhthet al the cpetation 4
cmeane 4 ely oe
jn am efective
SEfectinere~
54
om algexith m ane be © mug
Geuded in a fenie dength 4 time-
manfhey.
Repaeceridatitm emni—
— Fe youdlonicanye a su'ttm Can be
| e 4 wsutien tn erty of the dellaiding
© Natural language! a ug the dnote crepe certain
of am abgozthem where shepe Agosto oe
tonitten Jon Sot aelura) clonguape
Bch 8-H? » ermlith elc.
Rrewle Code: —Thyp sepretercehion ug q’ fool srepecent
& algorithm im Which dhe elep 3 Adgexthm
Aedoces Lome gemal sulee cmd modding to be
sbimeaelen. Fhuk qapretertation geome hd etmilay de
Flow chat! ~ az
: Flow chat ue. o clinvognetic sepsrcornlastion
% am algosutlirm which up uted “do clepict Recplence
fentte etep 4a Graplesting a chat sack 07
A(emt ae)
Iopd Joodpet
Px cere
pDeciean? Box
whith a decleln hat to
| be deken ton bated an
‘e ablernades + ut alliFs ee ee
Algeasthon@ »- wate’. on estithem +0 Caleuhte.
Odin og #80 Senped mombeye
. Aedural_Jorgunge “4 .
eps obit”
elep-2:- Reel do value din numa ond Munna)
alep:3i- dake a youdble “eure.
Aeps gure reed + rn By 4 Procecshog-
a Diepley dhe value ¢ Seurm’ J owctpat
etep-6'- Ed
t
Peeuclo Coder— Senped
a fad C FF mons)
® dake — yoourble set’
ae =
I Read enumnt ame entero?
[ Take vouable “kuem?
<1 a nn
Puem= cnuend + NUM 2-
iad"Algosittrm® '- poude an algexitm do check the
=, on mpi mo sn” te even or ede.
gdep 2~
okep 2'- oe a anmbe *N’
dep s!~ Qileulate 7p ancl ove reminder (on Veowable
G?
See Check yhe Uae of VY JS dg sero them
cuigplay 0" te even musrba oithajote odd mo..
AMPS — Fa
Peedo. codet ~
Check _ Gren — ockl (N)
Ovo Me
@ uf so
© dhen prod (Ae even”) ee
® elee pant (" N re odd”)
© &.
a)
Flew chavt:— py
: ke eid am nm)
ae
Wen sayy log 4
le e/a
is —— rg al
Digby “1 10 cele) Tpivplay A 1 enn 7, oe
walbhper
Cz ; ag7 Tae
Nand aljesitiem that” fine the
Lager oimber fram aroma, three. olvietine
uinpd anetmberg:
"Fao chavt 1~ ” Sind
[fea § om ee
om
Peeudo ade:
ata three Gr (M0. %) E
ge og NPN e,
2. hen sg. my > 5
oe Phen” pauit Fon} we lagect) mrs
| » alge pouient - aR daget) mem
i oo ele uf Ld
| & shen part (“ong te loge” ) i
1 edge ht Cre ie Meat |
& Frefade Gie fp _frime_te'- “
aa
check Paurme (on)
Hit bc 2
Hy jer wn?
. ie (mpd ==)
a thembsqeak.
5. if (m==5)
@ ve, pono ea
4. alge Punt (mom poieme)
a. end
Fw dot fo Point fitre Mer oid ted a————E
Ce TT ee
Fredo code for factored +=
facto (nm)
Sh de1i.fet
De fx jJe1 to %
8 cb f= t*!
4 Print Cf)
5. Ed¢ = Rogram +: (aa
; Jehuet>
lor
%- dokene? y spe tats burke }
4 athe c ~ Poxpsanrrnehy oe. AY jae ae
% a prep we Ce uping “fhe C- token,
Thue we @n cay that the Emre cx pro iam
is avede. up of ¢ eee: “theve. ee _folloed rap
6 Colokens Im any C Piogyam:
O Hentifnes
63) Key teomels |
@ @mekntt
@ ehings
© operakns
© epecil eyombole
D
)
‘C= Token? ~
Sele.
Begone! Keyra ore athe oad Vr c Prone
eorguage bay have -fiked cmecrntng Peelers, Sr
aan ol be used & okyenhg- omy indent fier
amd Hie meant tuce =) Si be change
Famer, torg, eke break, ble , goto, Gatinue ,
ee
andl
ind, dlod » cordi) Ser fre - erhigiore qe (2A lef! ee
Aven do gerne rouoble , aay » ferction eka
Gekertifiere follow folding eumpetttes — |
© Mace up ef lower Gre Aiphabedles.. upper fae
Alphatater, git » underscoxe-
fo.a--9% i
® Mast otaat cotth am alphabale. On tneke vhOne-
%. abbag ~
Abbac ld
Abbas ~
| @ Sdenifiace aye Goe eenetive.
gl All o7e oligherest oerdifieve.
| abh
abe
.® Gnebant Gmelonts spree ie! Value thet Tray
) be Gotiegrel do fome Urouiable « vole 3 Jt
eee Gy cat be ocaget ey fe Pa
Grelont ce Aho Called didevalee onl Grn
7C GLY YT
Win. °% “Tord ce ype om ee
there typer - Grebnda my be GO
esa, ipo.4. pument
2 olenactey Gace Integer:- 1,12; tos
Aumenic al (2
Cordon Reals 02, 0.8 (2-65
Juterala chavader Gnedert
ey am oar
Sa . Y , 3 "Bn
fing yea Za c= papa toxitten bjes ene
ote Gores ae te called a character Grob
2 ore egyenve of chavater le
ag coil oe“)
42” seb”, “Abgcs” , 0.95"
hee Legends
© epecta) eyrnbcler-
SF ae Ct ally ale
thet gee
ae! :
jee
si is
GGz Progen Stoudyye :
4 i ; ; /
| File Srctueion J 54 16 jnnduder other diberg gmc
ry ——_ Into your peg 3a
cba! Dechatioaf-> 94 cleeloore* yoru] furcsioy
ale Gg ekally : ’
2494 Grdaint atl the prnceeeiey
t | odahement ? tmerde 1
i The execution g_ the progr
Llavte fron He aman gemetion.
2 J+ hao to tub-pectronk
Unocal eleclaxocione Decealn, 9
|
| local Veowablee 7 fem chron?
Ls Retg pevcecctng oledernent
94 we we fynctiend paepornning
then we clefined ld fencion:
Craps) ond Gre)
hE cont Pei
# Srclude Kelesis sh?
# joneluol’ Gio hy b | ot
Conte a