Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a toolchain and a cross compiler? [closed]

I have had confusion over this terminology for a long time. I have tried to google this question and have been getting some contradictory answers.

One site says cross compiler is the same as a tool chain, some sites say cross compiler is a part of a toolchain. I have clearly not found this useful.

To be specific, I have used PowerPCeabi cross-compiler and Atmel AVR toolchain. Are these both toolchains and/or cross-compilers or are they different?

I guess, my very specific question would be, if I had to put this in my resume, will it be right in saying Experienced in powerpceabi and AVR toolchains ?

Edit: For the people who marked this question as unclear what you're asking, how much more clear should I have to make this ?

Modified question: Can I mention powerpceabi and AVR together as toolchains ?

like image 623
ctrl-shift-esc Avatar asked Mar 31 '14 07:03

ctrl-shift-esc


People also ask

What is meant by toolchain?

In software, a toolchain is a set of programming tools that is used to perform a complex software development task or to create a software product, which is typically another computer program or a set of related programs.

What is meant by cross-compile?

A cross compiler is a compiler capable of creating executable code for a platform other than the one on which the compiler is running. For example, a compiler that runs on a PC but generates code that runs on an Android smartphone is a cross compiler.


Video Answer


1 Answers

If we define the word "host" to mean a computer on which you are compiling, and "target" as the computer on which you want to run the code, then a native compiler is one where the target and the host are the same (kind). A cross-compiler is a compiler where the target is different from the host.

A toolchain is the set of compiler + linker + librarian + any other tools you need to produce the executable (+ shared libraries, etc) for the target. A debugger and/or IDE may also count as part of a toolchain.

So

Experience with Powerpceabi and AVR toolchains

would be how I'd express it if I had some experience with those.

like image 115
Mats Petersson Avatar answered Sep 20 '22 12:09

Mats Petersson