Qhov txawv ntawm C thiab Embedded C

Qhov txawv ntawm C thiab Embedded C
Qhov txawv ntawm C thiab Embedded C

Video: Qhov txawv ntawm C thiab Embedded C

Video: Qhov txawv ntawm C thiab Embedded C
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim

C vs Embedded C

Kev txhim kho cov txheej txheem yog qhov chaw loj hlob sai niaj hnub no. Muaj qhov xav tau tas li los sau cov ntawv sau npe siv cov lus programming siab (xws li C) feem ntau rau ob qho laj thawj. Ua ntej, qhov nyuaj ntawm cov ntawv sau npe tau nce zuj zus thiab nws tau dhau los ua qhov nyuaj heev los tswj cov ntawv thov siv cov lus qis xws li Lus Sib Tham. Qhov thib ob, vim hais tias cov qauv tshiab processor raug tso tawm ntau zaus, nws yog qhov yuav tsum tau hloov kho / hloov kho koj cov kev pab cuam rau cov kev qhia tshiab. Lub reusability feature tam sim no nyob rau hauv cov lus zoo li C tuaj yeem muab kev daws teeb meem rau ob qho teeb meem no.

Embedded C yog ib kauj ruam ntawm kev hloov C programming lus los sau cov ntawv sau tau zoo. Embedded C yog ib qho Extension rau C programming lus uas tso cai rau cov programmer kom muaj tag nrho cov txiaj ntsig zoo ntawm cov lus programming siab, thaum muaj peev xwm sib txuas lus ncaj qha nrog cov phiaj xwm kos rau kev ua haujlwm tau zoo. Ntau xyoo dhau los, ntau tus neeg ua haujlwm ywj pheej C tau ntxiv qhov txuas ntxiv los txhawb kev nkag mus rau I / O kho vajtse yooj yim. Embedded C yog ib qho kev rau siab los ua ke cov kev coj ua thiab muab ib qho kev sib koom ua ke.

C yog dab tsi?

C yog lub hom phiaj dav dav ntawm cov lus programming siab tsim los ntawm Dennis Ritchie hauv xyoo 1970's. Nws yog tsuas yog npaj rau kev tsim kho qhov system software. Tab sis nws kuj yog siv rau daim ntawv thov software txhim kho ntau zaus. C programming lus yog nrov heev ntawm tag nrho cov programmers uas C compilers muaj nyob rau yuav luag tag nrho cov computer architectures. C tau cuam tshuam ntau lwm yam lus hauv computer xws li C ++ thiab Java. Qhov tseeb, C ++ tau pib ua qhov txuas ntxiv rau C, thiab nrog rau Java, nws muaj cov syntax zoo ib yam li C.

Dab tsi yog Embedded C?

Embedded C yog qhov txuas ntxiv rau C programming lus uas muab kev txhawb nqa rau kev tsim cov kev pabcuam zoo rau cov khoom siv kos. Nws tsis yog ib feem ntawm hom lus C. Nws yog tsim los ntawm pawg neeg ua haujlwm ISO hu ua "Extensions for the Programming Language C to Support Embedded Processors" thiab tau piav qhia nyob rau hauv Daim Ntawv Qhia Txog Kev Tshaj Tawm ntawm Embedded C (TR 18037), uas tau luam tawm thaum Lub Ob Hlis, 2004. Embedded C txoj kev loj hlob aims kom xa nce kev ua tau zoo rau cov yam ntxwv siv rau DSP (Digital Signal Processing) thiab kev ua haujlwm embedded. Nws sim ua kom muaj peev xwm txav tau yooj yim thiab muaj txiaj ntsig kev txhim kho ntawm cov ntawv thov hauv cov npe ntawm cov kab ke kos los ntawm kev nkag ncaj qha rau cov yam ntxwv hauv lub hom phiaj processor.

Qhov txawv ntawm C thiab Embedded C yog dab tsi?

C yog ib qho kev siv dav dav rau cov hom phiaj qib siab programming lus feem ntau yog npaj rau kev ua haujlwm. Embedded C yog qhov txuas ntxiv rau C programming lus uas muab kev txhawb nqa rau kev tsim cov kev pabcuam zoo rau cov khoom siv kos. Embedded C tsis yog ib feem ntawm hom C. C feem ntau yog rau desktop programming, thaum Embedded C yog tsim nyog rau embedded programming. Tsis zoo li C, Embedded C tso cai rau cov programmers tham ncaj qha rau lub hom phiaj processor thiab yog li muab kev ua tau zoo dua piv rau C. C tsim OS nyob ntawm cov ntaub ntawv executable, thaum Embedded C cerates cov ntaub ntawv uas feem ntau rub tawm ncaj qha rau hauv microcontrollers. Tsis zoo li C, Embedded C muaj cov ntsiab lus ruaj khov, ntau qhov chaw nco thiab I / O sau npe daim ntawv qhia.

Pom zoo: