You are on page 1of 4

TOOLSYOU’

LLNEEDTOBEAC++
PROGRAMMER
Asagoodprogrammerther ear
ethingsthatshoul
dbesetasideas
i
mport
antt
oy ou.Thesethingsarenecessaryandessent
ial
thingsev
ery
pr
ogr
ammershoul dhaveinstal
l
ed,andathand.

Thev
eryf
ir
stofi
tal
lIwoul
dsayi
sTI
ME.

Asamatt
eroff
act,
asaprogrammerti
meshoul
dbeoneoft
hethi
ngsy
ou
hav
eal
waysathandmostespeci
all
ywheny
ou’r
egoi
ngi
ntoC++.

C++requi
resal
otoft
imedespi
tet
hef
actt
hati
tisaneasyl
anguaget
o
l
earn.

C++i
sjustl
i
keav er
yjeal
ousfr
iend,onceyoul
eaveC++aday,
itl
eav
esy
ou
aweek,
andther
efor
ey oumustall
ocateti
metoitev
eryday
.

Nextonthel
isti
swhaty
ou’ll
act
ual
l
yneedt ocodeorwr
it
eyourprogr
ams.
I
tiscal
ledanIDEwhi
chstandsf
orI
ntegr
atedDevel
opmentEnv
ironment
.

Nowt
hequest
ion“
whati
sanI
DE?
”isasked.

Anintegr
ateddevelopmentenvi
ronment(I
DE)isasof t
wareappli
cat
ionthat
provi
descomprehensivefaci
l
iti
estocomputerprogrammersforsof
tware
devel
opment.AnIDEnor mall
yconsist
sofatleast;
asourcecodeeditor
,
buil
dautomati
ont oolsandadebugger.

Andnowt oexpl
ainwhatsour
cecodeedi
tor
,bui
l
daut
omat
iont
ool
sand
debugger
sare:

Sourcecodeeditor:Asour
cecodeedi
tori
sat extedi
torpr
ogram desi
gned
specif
ical
lyf
oredit
ingsour
cecodeofcomputerprograms.I
tmaybea
stand-
aloneappl
icati
onori
tmaybebuilti
ntoanIDEorwebbr owser.

Buil
dautomati
ont
ool
s:Aut
omat edbui
l
dtooli
ssof
twaret
hatcompi
l
esthe
sourcecodet
omachi
necode.Automat
iont
ool
sareusedt
oautomatet
he
wholeprocessofsoft
warebui
ldcreati
onandtheot
herr
elatedpr
ocesses
l
ikepackagingbi
narycodeandrunningtheaut
omat
edtests.

Debugger :Adebuggeroradebuggi ngtooli


sacomput erprogram usedto
t
estanddebugot herpr
ograms.Themai nuseoft hedebuggeristorunthe
t
ar getprogr
am undercontroll
edconditi
onst hatper
mitstheprogrammerto
t
r ackit
’soperat
ionsinprogressandmoni torchangesi
ncomput er
resourcesthatmayindicat
emal functi
oningcode.

Hav
ingknownall
thi
s,wemov eontothedi
ff
erentI
DE’
swhi
chcanbeused
t
owrit
e,compi
le,
andrunyourprogr
ams.

Ther
earemanyIDE’
soutther
ewhi
char
ever
ygood,
butt
het
opoft
hel
i
st
I
DE’sforC++ar
eli
stedbel
ow:

 Ecl
i
pse

 Net
Beans

 Vi
sual
Studi
o

 Vi
sual
Studi
oCode

 Code:
:
blocks

 CLi
on

 Qt
Creat
or

 Xcode

 DevC++

Thesear
egreatI
DE’
swhi
chcanbeusedt
owr
it
e,compi
l
eandr
uny
ourC++
progr
ams.

Nowanessent
ialt
ool
you’
l
lneedt
ohav
eathandi
sapl
acet
oact
ual
l
y
i
nst
all
theseI
DE’s.

Foranyoft
heI
DE’
sli
stedpr
evi
ousl
ytheycanbedownl
oadedandar
ebest
downl
oadedonPC.

Nowf orthosewhodonothave(lapt
opsordesktops),
thatshouldnotst
op
you.I
nt heworl
dwehavediff
erentappswhi
chcanbeusedony ourandr
oid
phonetowr i
teC++pr
ograms.Theseappswillbeli
stedforyoubelow.

 Ter
mux

 CppDr
oid

 Cx
xDr
oid

 Mobi
l
eC[
C/C++Compi
l
er]

Havi
nganyoft
heseappswil
lbeagoodchoi
cef
ory
out
oact
ual
l
ywr
it
eC++
pr
ogramsonyourmobi
lephone.

Sotheninthenextl
essonwewill
lookathowt
oinst
all
anI
DEf
ory
ourPC
andthatofyourmobil
ephone.

Nowt
henextt
hingy
ou’
l
lneedt
obeapr
ogr
ammeri
nC++i
saCOMPI
LER.

Al
thoughsomeIDE’
scomewi
thacompi
l
erot
her
sdon’
t.Nowweask“
What
i
sacompi l
er?

Acompi l
ercoul
dbeseenasacomput erprogr am whicht r
ansfor
mssour ce
codeint
oobjectcode.Incomputing,acompi lerisacomput erpr
ogram that
tr
ansl
atescomput ercodewri
tteninonepr ogrammi ngl anguageint
o
anot
herlanguage.Thenamecompi l
erisprimar i
lyusedf orprogr
amst hat
tr
ansl
atesourcecodef r
om ahigh-l
evelprogrammi ngl anguagetoal ower
l
evell
anguage,tocreateanexecutabl
eprogr am.

Nowweknowt
his,
wemov
eont
othet
ypesofcompi
l
ers.

1.Si
nglepasscompi
ler
s:Si
ngl
epasscompi
l
erdi
rect
lyt
ransf
ormsi
nto
machinecode.

2.Twopasscompi
ler
s:Twopasscompi
l
eri
sdi
vi
dedi
ntot
wosect
ions;
a.Fr
ontend:I
tmapsl
egal
codei
ntoi
nter
medi
ater
epr
esent
ati
on(
IR)
.

b.Backend:I
tmapsI
Ront
othet
argetmachi
ne.

Thet wopasscompi
lermethodalsosimpl
i
fiest
her
etar
get
ing
process.I
tal
lowsmult
ipl
efrontends.

3.Multipasscompi ler
:Multipasscompilerpr
ocesst hesourcecodeor
syntaxtreeofapr ogram intomult
ipl
esmallprogramsandpr ocesses
them.Itdev el
opsmul ti
pleinter
mediat
ecodes.Allthesemultipass
taketheout putoftheprev i
ousphaseasani nput
.Soi tr
equir
esless
memor y.I
tisalsoknownaswi decompiler
.

Nowaskt
hequest
ionwhatt
ypeofcompi
l
eri
sforC++?

Thequest
ionsi
mpl
yanswer
edi
sthatC++hasamul
tipasscompi
l
er.

Nextquest
ion“
whatt
ypeofcompi
l
eri
susedi
nC++?

Oneofthemostsuitabl
e,matureandcompat i
bleC++compi l
eri
sonGCC,
al
soknownasGNUcompi lercol
lect
ion.I
tisafreesetofcompil
ers
devel
opedbytheFreeSoft
war eFoundati
on,wit
hRichardStal
lmanasone
oft
hemai nar
chit
ects.

Andfi
nal
ly
,ever
yprogr
ammershouldhav
eabrowseri
not
hert
obr
owse
andsol
veprobl
emshe/shemi
ghtfaceal
ongt
heway.

You might also like