Cov txheej txheem:
Video: GCC cross compiler yog dab tsi?
2024 Tus sau: Lynn Donovan | [email protected]. Kawg hloov kho: 2023-12-15 23:47
Feem ntau hais lus, a ntoo khaub lig - compiler yog a compiler uas khiav ntawm lub platform A (tus tswv), tab sis tsim cov kev ua tiav rau platform B (lub hom phiaj). Ob lub platform no yuav (tab sis tsis tas yuav) sib txawv hauv CPU, kev khiav hauj lwm qhov system, thiab / lossis hom ua tiav.
Ua kom pom qhov no, cross GCC yog dab tsi?
Hla GCC txhais tau hais tias koj tab tom sau koj qhov project rau qhov sib txawv architecture, xws li. koj muaj x86 processor thiab xav muab tso ua ke rau ARM.
Tsis tas li, kuv yuav hla kev suav GCC rau caj npab li cas? 2 Teb. Nruab gcc ua - caj npab -linux-gnueabi thiab binutils- caj npab -linux-gnueabi pob, thiab tom qab ntawd tsuas yog siv caj npab -linux-gnuabi- gcc ua tsis yog gcc ua rau muab tso ua ke . Qhov no coj nyob rau hauv tag nrho ntoo khaub lig - sau ua ke ib puag ncig, suav nrog binutils. Qhov no yog tib txoj kev txhim khu kev qha.
Tom qab ntawd, ib tug kuj yuav nug, ua li cas koj ua ib tug ntoo khaub lig compilation?
Kev sib sau ua ke yuav tshwm sim ntawm lub tshuab Linux x86 rau 96Boards ARM ntaus ntawv
- Kauj ruam 1: Hloov kho 96Boards (ARM) system thiab Host (x86 Tshuab) computer.
- Kauj ruam 2: Yog tias koj siv libsoc thiab mraa kom paub tseeb tias lawv tau teeb tsa thiab hloov mus rau hnub tim.
- Kauj ruam 3: Nruab tus ntoo khaub lig compilers ntawm lub tshuab host.
- Kauj ruam 4: Nruab pob dependencies.
Dab tsi yog qhov txawv ntawm compiler thiab cross compiler?
Lub ntsiab Qhov sib txawv ntawm compiler thiab cross compiler yog tus compiler yog ib qho software uas hloov cov khoos phis tawj uas sau ua cov lus programming siab rau hauv tshuab lus thaum lub cross compiler yog hom a compiler uas tuaj yeem tsim cov lej ua tiav rau lub platform uas tsis yog qhov uas
Pom zoo:
Protobuf compiler yog dab tsi?
Protocol Buffers (a.k.a., protobuf) yog Google cov lus-nruab nrab, platform-neutral, extensible mechanism rau serializing cov ntaub ntawv. Txhawm rau nruab protobuf, koj yuav tsum teeb tsa cov txheej txheem compiler (siv los sau cov ntaub ntawv proto) thiab lub sijhawm ua haujlwm protobuf rau koj cov lus xaiv programming
Lub npe ntawm Java compiler yog dab tsi?
Java compiler yog ib qho kev pab cuam uas siv cov ntawv sau ua haujlwm ntawm tus tsim tawm thiab muab tso ua ke rau hauv lub platform- ywj siab Java cov ntaub ntawv. Java compilers suav nrog Java Programming Language Compiler (javac), GNU Compiler rau Java (GCJ), Eclipse Compiler rau Java (ECJ) thiab Jikes
JDT compiler yog dab tsi?
JDT Core yog Java infrastructure ntawm Java IDE. Nws suav nrog: Ib qho incremental Java compiler. Ua raws li Eclipse builder, nws yog raws li thev naus laus zis hloov zuj zus los ntawm VisualAge rau Java compiler. Hauv particular, nws tso cai rau khiav thiab debug code uas tseem muaj cov kev daws teeb meem tsis raug
Dab tsi yog tsob ntoo parse hauv compiler tsim?
Parse tsob ntoo yog cov qauv hierarchical uas sawv cev rau qhov muab los ntawm cov qauv sau ntawv los tawm tswv yim cov hlua
C compiler yog dab tsi?
Lub compiler yog ib qho kev pabcuam tshwj xeeb uas cov txheej txheem sau ua ib hom lus programming thiab hloov mus ua hom lus lossis 'code' uas lub khoos phis tawj processor siv. Feem ntau, tus programmer sau cov lus hais hauv alanguage xws li Pascal lossis C ib kab ntawm ib lub sijhawm siv aneditor