0% found this document useful (0 votes)
14 views11 pages

Vikram c2

Uploaded by

selereh405
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views11 pages

Vikram c2

Uploaded by

selereh405
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Date

Nome- Vikaam kumbhakor


Courbe - 0S BTech CS
23020 694
bate 93]65)24

ASSTGNMENT- 2

Steite functoean fle


Creade a sh flewstth fnehoa prctotypea
Sk3 Conmpile the c fle t get a cky fle.
the

progam,incde he h fle and Wnk the


-bb fledning campilaten.

nal MACRO

AsKe dfenoice bet both ne

Non-fnhond mass,

Reploce he nm ocns name th a


sEing dunirg puopaeaing
Date

Ahethand fo frequcnty Lsed rt
Ex #deine B0F FERSIZE t024 reploces GuffERSIZE wntt

fnhnal Maco
tio
a funciea by taling ngumênb
ponenese
xpondo duningprpno cesing, plocing gumeat vales
Sresty 4he
tead

baloty & cdoty renl funchena


finding the gteatest among &numb ero by
ubing MA
MA cRO

t
# dekine MAX (ar b) ((a Cb) ? (o) : ())
dei MAY -0E_TMREE (a,b, ) (MAK (A (as, 4o)O)
tdnm

greatot = MAXOFTHREECn ty nim2, num3)


tatf ong d . d
he gesest nunb e among
grcotest);
retun
Date

DHfenarhte bet0@n Sotce codeand abit o Code

in
a ighled piagiaming longuageh
Chjed cole machne -readosle code
Secenaed by a cSepilea ote trans loh ng the baunee
lolevel reprasentahion
Code

Key doffernean cue

Read cilty Soutce Code is humanreodable le cbed


machine- reod able

)Potobilhy Soue code tb


pledfens ie sbjed code io phtfonsptohie
cenplatien i- Souee code aA needo t be compiled (

setledito objed code Lalee it Can be


exe cuted oy the Cempilea

cocle Compaedtobiect coole

S12e Dhyco code


cAmpaLed to pOWe ode
Dato
Grplaia conditena conypllaten
paegtanaing technie tne
entain one included
baned hpecificcanda
dewelapes to cheate

ithouddupltatng code mojntining


Lode bae

e- prolam

DEBU 1
degine
int main ()1

printf ( ncggirg inman


printf Nema
retun0j

Hene
deine ebg dekines
Nale This
Cenpile coale
DEBUC mac
degntd.

excluded

degined
Date

feqoleba ol tehe O not


delred
g Exploin MACRO. ist
A
paogramng
which hasbeon Hven aname
a Lshenee he nare

mooo, pote tood that can enhance


Cocle eadabilty , mointainibiliy peeQnce hen
oed esechey

ma e t eate
longe code Segmento cemplex
makng Code moe cancise CLnd easie t read

in elde erclude certun


ung
cocle bane Dn ceple - hme Cendhn
pondo
Moeos can e
the
conotant, Aeh
dabie
OuneUca vales
be peyemarco
cihcal cade ay rejocing funchim
ipel
wned
tcharge
stat fo
oloung strut ce
o procss
Date
eep. e
fle,nome,
sl funehh tnas
,
nsa child
the fonk, )buf
stad status)
oufcateo
q
wnuage
path.
path *
funchen Cini ao (vcid)i
fek
pid-t
usat, cho
(inl ol
one utmecOn.mo terinaorn
cha & pid-toait
funeton
-wat
& Jott
ntoxuthme 0ccess
(congt
tat'
nd the
stot jnt Ahe
the btat and retrieve
'stl'
int Jait? Syptex
Exploin
stst, stat' Ofme' Syatx Synta fok
ty
a Oaned
by prcee Sele e u
the
abodingemaan
l pravido to
biheo othe comaned
th
poceABes. al Sele
Dsag
inenahe
bo provide to wed Linux
utlihn
unix ioveuale and cem po' The
potoces akil gou
Dexcuke
he
a thoad
fo callig the exeat
en
Unasgned Syntax
QLaa) pro (patant poteas calling
asm procSAs)
by (child pnoces
ne
Date
Jleoding bpocess mechanism
g)Diffenenhiate
bet
procest aand fle
gocokuly texinate
1,reguestig PID usthpioces the
s|aTERM? delault the Dendo COmnard
)234 KI
exonaple
Aely
o prcers testminatn
he o fonees sIcakIL1?
ioce ptocens Terinte
the tdejau) SICTTERm
Signalo Conannen
Usage
kill" te
dipocesses
sploy to
Date
Date

Gle Proces

A
data stoed a sto
tage desice
a fHosh die cepute sytem
n atue
Ayecalg copregeto
inteamatien uch
4exts inages pegm itruteno manieuateo
with
Daytem data
Sheytesnresees

6le pse enhy


ne Eoch procers
& adoo co no octueby
eKeCute itruen ountea, Stack, heap
resDukes alleca

Openaies incle readng, froceses


madgikying can be ceted, exe cute do
Hhen contot pauned cem resuned

Foing proce
mechanism for cTeahirg ne
whichinuoes the paieat poceAA duplcating
child

Exe cuthag
L

&1

qecUe
he Ex Sovethe
Nowlgate UAeatext DescubeOnvicement
Csigns & Creahon he
+ preyeedtext
toned
jncue he
direceyteanina
the to b by
DOwed hoJ&aaigns System
edto
ond <stdio, pnoessem Code
edito t to
h> ike. callb
wrute,
ainit
m
UiunnueprceasTD
allocates the next
CBempile adines
ilehe
Emacs
necesDQTty the hildatep
ito
ond in Date
Nano exean
execute
replace
()
Ony
Ex: (stho theAfea Sunta'gexc -o
Simpy
heln TwS
-Jhello cenneiled
uccenstul
Cemmad the gcc-o
hello
hel.c
he
.exe
Pgm
exe campilate
nane
Cutpat
cutes extension)
e
ohe fle
fBs youcan ,
the
cmpledpag input
and the
eXecatable fle
terminal Date
exete
er

You might also like