LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cross compilation (https://www.linuxquestions.org/questions/linux-newbie-8/cross-compilation-759963/)

shaiva 10-06-2009 12:52 AM

cross compilation
 
Can you please clarify how a cross compilation is done (an example).
The difference between compilaton and cross compilation?

lutusp 10-06-2009 03:06 AM

Quote:

Originally Posted by shaiva (Post 3709152)
Can you please clarify how a cross compilation is done (an example).
The difference between compilaton and cross compilation?

"Compilation" is generally taken to mean a compilation for platform A executed on platform A.

"Cross-compilation" is generally taken to mean a compilation for platform B executed on platform A. In other words, a compilation that could not be executed on the hosting platform.

A "compilation" would therefore be a compiler running on Linux producing a program that can be executed on Linux.

A "cross-compilation" would be a compiler running on Linux producing a program to be executed on Windows.

shaiva 10-06-2009 03:43 AM

fine !
 
Quote:

Originally Posted by lutusp (Post 3709245)
"Compilation" is generally taken to mean a compilation for platform A executed on platform A.

"Cross-compilation" is generally taken to mean a compilation for platform B executed on platform A. In other words, a compilation that could not be executed on the hosting platform.

A "compilation" would therefore be a compiler running on Linux producing a program that can be executed on Linux.

A "cross-compilation" would be a compiler running on Linux producing a program to be executed on Windows.

Thanks


All times are GMT -5. The time now is 06:23 PM.