• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

compiler

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what is a cross-compiler? !!! URGENT
------------------
 
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I haven't heard the term before, but I would guess you mean cross-platform compiler.
This is a compiler that can take some source code (like C++) and compile it for different platforms. When you compile some machine-dependant code (basically, anything that makes an executable), the rusulting file will only run on the platform it was compiled for - the file consists of machine code, which can only be understood by a particular processor/system.
A cross-platform compiler (at a guess) could compile some source code into different exeutables for different target platforms - for example, you could write an application in C++ and compile it for windows and macintosh (which you can't generally do).
None of this applies to Java, as it is not compiled into an executable, but to bytecode, which is then interpreted by the JVM (Java Virtual Machine) on whatever platform you run it on. As long as the system has a JVM (which most do), the file you compiled on any system will run on it.
If that's not what you meant, give a little more detail (eg the full question about cross-compiling).
Grant.
 
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It seems not exactly as Grant explained. However, it is my first time heard this name too.
It is not platform independent, but compiles on one machine and targets another machine from my understanding from the author.
Please read this to get your own conclusions: http://www.strusel007.de/linux/cross-compiler.html
Roseanne

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic