Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

What is cross compailer ?

Status
Not open for further replies.

thannara123

Advanced Member level 5
Joined
Jan 7, 2010
Messages
1,580
Helped
122
Reputation
244
Reaction score
114
Trophy points
1,353
Location
India
Activity points
10,382
Googled ..not get the Logic .
any body help me with some example ?
 

what i believe is cross compiler is a compiler which is using a already existing good compilers output to out in our destined controller's instruction format...

I also awaiting for some examples in this topic..
 

I too googled it, but didn't get an Idea. Are you sure it is compailer and not compiler..?

If so, I would surely like to know.
 

I didnt seen the 'a'.... I think that is a misatke ..

this image explains a lot
745px-Example_of_Canadian_Cross%2C_scheme.svg.png
 

A cross compiler is simply a compiler which runs on one type of platform, e.g., Windows, Linux, MAC OS X, etc, which compilers code for another platform, e.g., PIC, AVR, ARM, etc.

Therefore, most embedded compilers are in fact cross compilers, e.g., Hi-Tech, KEIL, ARM-GCC, MikroC, etc.

The term platform in this case can refer to both a specific architecture, e.g., x86, ARM Cortex-M3, PIC16F, ATmega, etc, or an OS/RTOS.

In other words, a Windows PC system can use a cross compiler to compile code for a Linux PC system, while both may utilize an x86 based processor, in this case a cross compiler is required due to the different OSs.


BigDog
 
I got it.. compiler is always compiles to execute in the same processor.. but a cross compiler compiles for the code to work in different processor...
 

Compiler has two types:
1) Native compiler: Works on some processor and compiles code to generate executable which runs on the same processor. (eg: Turbo C)
2) Cross compiler: Works on some processor and compiles code to generate executable which runs on the some other processor. (eg: keil)

There are a few pages on the internet specifying compailer, but I guess it is a typo mistake.
 

A compiler that runs on a processor and generate the executable image(hex,elf,obj,etc) of a code(asm,C,C++,etc) that runs on another processor is known as a cross compiler...
 
yes i was mistaken. compiler .
I got the idea thanks .

Is there any IDE use most of the cross compiler can use on it ?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top