Compile time address binding yog dab tsi?
Compile time address binding yog dab tsi?

Video: Compile time address binding yog dab tsi?

Video: Compile time address binding yog dab tsi?
Video: KOJ YOG HOM NQAIJ DAB TSI? What's Your Skin Types? What Can or Cannot Use For Your Skin? MUST WATCH! 2024, Kaum ib hlis
Anonim

Thawj hom chaw nyob khi yog compiletime chaw nyob khi . Qhov no faib qhov chaw hauv nco rau themachine code ntawm lub khoos phis tawj thaum qhov kev zov me nyuam tau muab tso ua ke rau cov ntaub ntawv binary anexecutable. Cov chaw nyob khi faib alogical chaw nyob mus rau qhov chaw pib ntawm ntu inmemory qhov twg cov khoom code khaws cia.

Tsuas yog li ntawd, dab tsi yog compile lub sij hawm khi?

Cov compiler ua tus txheej txheem hu ua kev khi thaum ib yam khoom raug muab rau ib yam khoom sib txawv. Qhov ntxov kev khi ( static khi ) hais txog compile lub sij hawm khi thiab lig kev khi (dynamic kev khi ) hais txog lub sijhawm ua haujlwm kev khi.

Kuj Paub, txhais li cas los ntawm kev sau lub sijhawm? Sau - sij hawm yog qhov piv txwv uas koj nkag mus tau hloov dua siab tshiab rau executable thaum Run- sij hawm yog qhov piv txwv uas lub executable khiav. Cov ntsiab lus "runtime" thiab " sau lub sij hawm " feem ntau siv los ntawm programmersto xa mus rau ntau hom kev ua yuam kev thiab. Sau - sij hawm kev tshuaj xyuas tshwm sim thaum lub sijhawm compiletime.

Kuj paub yog, txhais li cas los ntawm chaw nyob khi?

Chaw nyob khi yog cov txheej txheem ntawm daim ntawv qhia qhov kev xav tau lossis virtual chaw nyob mus correspondingphysical or main memory chaw nyob . Nyob rau hauv lwm yam lus, ib tug muablogical chaw nyob yog mapped los ntawm MMU (Memory ManagementUnit) rau lub cev chaw nyob.

Vim li cas thiaj li xav tau kev khi qhov chaw nyob?

Cov kev khi yog tsim nyog txhawm rau txuas lub logicalmemory rau lub cev lub cim xeeb. Kom paub tias qhov program khaws cia qhov twg tsim nyog txhawm rau nkag mus rau nws. The kev khi tej zaum yuav yog peb hom sib txawv. Sau Sijhawm Kev khi : Chaw nyob qhov twg qhov kev pab cuam khaws cia yog paub txog lub sij hawm compile.

Pom zoo: