Yuav ua li cas yog pass qauv ntawm assembler?
Yuav ua li cas yog pass qauv ntawm assembler?

Video: Yuav ua li cas yog pass qauv ntawm assembler?

Video: Yuav ua li cas yog pass qauv ntawm assembler?
Video: Nrauj koj tag ces luag tej ntxub by tub vwj 6/22/2019 2024, Hlis ntuj nqeg
Anonim

Ib pass assembler hla dhau tshaj qhov chaw fileexactly ib zaug, nyob rau hauv tib yam hla sau cov ntawv sau, daws cov ntaub ntawv yav tom ntej thiab ua qhov sib dhos tiag tiag. Qhov nyuaj yog los daws cov ntawv sau yav tom ntej (qhov teeb meem ntawm kev xa mus tom ntej) thiab sib sau ua ke hauv ib qho hla.

Tsis tas li ntawd, dab tsi yog pass hauv assembler?

Sib dhos yog ib qhov kev pab cuam rau convertinginstructions sau nyob rau hauv qis-theem sib dhos code rau relocatablemachine code thiab tsim raws li cov ntaub ntawv rau lub loader. Ntawm no sib dhos faib cov haujlwm no ua ob hla : Hla -1: Txhais cov cim thiab cov ntawv sau thiab nco ntsoov lawv cov lus cim thiab cov lus sau raws li.

Tsis tas li ntawd, vim li cas peb thiaj xav tau ob lub tshuab ua ke? Lub ntsiab yog vim li cas feem ntau cov khoom sib dhos siv a2- hla system yog los daws qhov teeb meem ntawm forwardreferences - xa mus rau qhov sib txawv los yog subroutines uas tseem tsis tau ntsib thaum parsing qhov chaws.

Ntxiv mus, dab tsi yog qhov txawv ntawm assembler?

Ib sib dhos yuav tsum txhais ob sib txawv ntawm cov cim: sib dhos -txhais cim thiab programmer-txhais cim. Cov sib dhos -txhais cim yog mnemonics rau lub tshuab cov lus qhia thiab pseudo-cov lus qhia.

Dab tsi yog literal nyob rau hauv assembler?

Yog tsis hais meej rau ib hom lus, a ntawv yog qhov tsis muaj npe. Cov Sib dhos program pawg tag nrho cov ntawv ua ke nyob rau hauv ib tug tas mus li pas dej ua ke tsis muaj repeats. Nws yog qhov "=" uas qhia tus Sib dhos tsim kom muaj nuj nqis hauv lub pas dej no yog tias tsis tau tsim.

Pom zoo: