Cov txheej txheem:

GCC cross compiler yog dab tsi?
GCC cross compiler yog dab tsi?

Video: GCC cross compiler yog dab tsi?

Video: GCC cross compiler yog dab tsi?
Video: Watch This 10X BEFORE Your Next Round ofGOLF! 1 Golf Swing Tips #shorts 2024, Kaum ib hlis
Anonim

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

  1. Kauj ruam 1: Hloov kho 96Boards (ARM) system thiab Host (x86 Tshuab) computer.
  2. Kauj ruam 2: Yog tias koj siv libsoc thiab mraa kom paub tseeb tias lawv tau teeb tsa thiab hloov mus rau hnub tim.
  3. Kauj ruam 3: Nruab tus ntoo khaub lig compilers ntawm lub tshuab host.
  4. 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: