Dab tsi yog compile lub sij hawm thiab runtime C #?
Dab tsi yog compile lub sij hawm thiab runtime C #?

Video: Dab tsi yog compile lub sij hawm thiab runtime C #?

Video: Dab tsi yog compile lub sij hawm thiab runtime C #?
Video: Maiv Thoj ft. Win Vang _ HLUB TSIS TAU ( Nkauj Tawm Tshiab 2020 ) Officail MV 2024, Kaum ib hlis
Anonim

Lub sijhawm ua haujlwm thiab sau lub sijhawm yog cov ntsiab lus programming uas xa mus rau ntau theem ntawm kev txhim kho software. Sau - sij hawm yog qhov piv txwv uas koj tau nkag mus yog hloov dua siab tshiab rau executable thaum Lub sijhawm ua haujlwm yog qhov piv txwv uas lub executable khiav. Sau - sij hawm kev tshuaj xyuas tshwm sim thaum lub sijhawm sau lub sij hawm.

Raws li, qhov sib txawv ntawm compile lub sij hawm thiab runtime yog dab tsi?

Sau - lub sij hawm yuam kev feem ntau raug xa mus rau yuam kev sib xws rau syntax lossis semantics. Runtime yuam kev ntawm qhov tod tes, xa mus rau yuam kev ntsib thaum lub sij hawm ua tiav ntawm code ntawm lub sijhawm ua haujlwm . Sau - lub sij hawm yuam kev tau kuaj los ntawm compiler ntawm sij hawm ntawm code kev loj hlob.

Ib yam li ntawd, yuav ua li cas sau lub sijhawm? Sau lub sijhawm yog thaum qhov kev pab cuam muab tso ua ke; runtime yog thaum nws ua haujlwm (ntawm lub cev lossis lub computer virtual). Programmers siv lo lus static xa mus rau txhua yam uas tau tsim thaum lub sijhawm sau ntawv thiab nyob ruaj thaum qhov program khiav.

Xav txog qhov no, dab tsi yog compile lub sij hawm thiab runtime yuam kev?

Compile lub sij hawm yuam kev yog hom twg yuam kev uas tiv thaiv java program sau ua ke zoo li ib tug syntax yuam kev , ib chav kawm tsis pom, cov ntaub ntawv tsis zoo rau cov chav kawm uas tau hais tseg, qhov ua tau poob ntawm qhov tseeb thaum koj sib xyaw java cov ntaub ntawv sib txawv thiab lwm yam. A runtime yuam kev txhais tau tias ib yuam kev uas tshwm sim, thaum lub program yog khiav.

Yuav ua li cas Python suav sau sijhawm thiab khiav sijhawm kuaj xyuas code?

Teb: Python ua qee yam ntawm sau ua ke - tshawb xyuas lub sijhawm , tab sis feem ntau ntawm cov kuaj xws li hom, npe, thiab lwm yam raug ncua mus txog thaum kev ua txhaum cai . Yog li ntawd, yog hais tias tus Python code hais txog tus neeg siv-txhais ua haujlwm uas ua tsis muaj, cov code yuav sau ua ke ua tiav.

Pom zoo: