Professional Documents
Culture Documents
New Doc 06-May-2023 1.02 PM
New Doc 06-May-2023 1.02 PM
Cede
Cheno oepriialisn
3am Convienien
pcand2
X
()
The
apolox
Cpuaals
Xb
Ta T
T3
b
L
T5
Tadi oiple
cpriinzhon
he poadwcing
apliiz Cada
1
)
Tnkeymeciate Code optimiatjon
an cfhicie
Needr AeguiYcd
co dei
boro duee
taget
reMcmbevtd whe
Two imp thimg bo b
aprlying opimizakon -
2
fm shoul d not change
ImproveMenb
Usk be achicved withoutchanging ago
roqraM.
Closication :
Code
opti.
cheracteistic
as nst
ch
Vsed for
stt &
adressing modes
Bascd on
nsts:
çharactensti o
programiny
Lang vage
Can e Achitved thsouyh following (ondt
Teachar's Signaturs:..
Aata &nst.
cade
uSC appropriate
o
iimprove
fxdm sbucre
in order
Yerget code. nrtachabte
) f xom soUY(L COde eininate
iN) Move fuo o modedenbC9| -conmpu bab
at one place&maKe wseof ye Sulk
in stes d
off compu Fing
again
Teacher's SigRature
SONCCSot ofimzab.
OPhmia Con b applicd (ocallq or
fans oma
m
iinsfomation Gechai. cs
TEMcang shin
Yon ime to Compa
l fie
Two mehods*
i Foding In Ehis, Computam of
cOnStant ísdone at compile Gre
insltad of executn bine.
Mer
22/1 sComputed at Comeile 6ime
Teacher's $lgnaturo:..s
at Complat" Hme UglUe
LAurvg compilat.
2)[ommon Suhfxprtssion liminasion
not changr
<yample:
t6i b Ct+] t t
alter eliinahin subtyprtss"
9) Voviable prgeosion:
one voYfable nsk
of obher:
Teacher's Slgnature....
Exomplexp
Arophimiz4tn
4)(odeMove menb
Lxample:forCie 0; i<-(0;it+)
X
Cant be oplimize as
Teacher's Slgnaturei.
5)2heogn Reducbion
3
a er e srengeh veducen
Count temp
temp btmpt
¿xample
Zpead Gade
Teacer's Slgnature:.
i2) Loop cPimira"
- optimize
iunníng bimc
CoopsbrvchrC in codeImpove
Can he redeced by
bq caiing code buo
Gu0
SKum P1e
it+)
aciTbli;
fori)to ntmd
forjit to
m
do
aCi,u:10
Teacher's Signature.
a
ProcesG af conpilatten
e
Takcsntemedate Cod 4s npsb
Qcncoats asgeb maChinc code as ovtput
G
yMTAG
kmedi
Co
Cude - Absotwbe
dple code
-ovtput o
code geneaf" îs an object
ues n
coier in/c code
following
(ode ommalty
forns
1- Absolube Code
bhat con bai s
a
m/c code tkrtnce
to acbual addrtsses ihin poqram's
-addoess gpace The qkneated cod can bt
dirccolyin MMory eexecuton
shyts Tmmediasely:
eXample- studeAE-job" Compiiers guc h
ode.
Teacher's Signature:.
)Rclvcalable (ode:
SaGcly: A
eofvcocabe bte ahecb
ocat avtomahicaly,Compiley ms
ce
boeder
o1n5sepavqbtly mpled propts
b)Asembler code :
This. Gype
Can vse fwco" of assemler
nchp in
Codetnla Tais mqies code
qtuoafslowio
T55 ves
Co de geAesahor
Toacho ignaiurai
proams.
MeMoy MongpenMeube
ode gcnerator
inerabor mgps
(abtls n
Ce de refer's SyMTAB.
nehwcton se(ecticn:
Unlosntbe K
complcftness ot ins trckion sk
s jmpoxLant factor Co de
qenerg decided
ot code td is
by
toangan
s spetd sie Sinply line by line
3
addse5s code
cadeeads o
elient.
hesiskex At ocalion
Sowe
Consecole
Chkments in which louw of conbrol
(nbers att beginning leancs at end
ekhovb ha lG os possibilb of banchong
Teacher's Signaturei...