ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Heres the deal, i´m running a linux under 64bit. I am programming in java... y lets say a make a program, works and everything ok. And i compile it to have a binary. Will this binary work only under 64bit linux only... what´s the deal with the compilators and the outputs rewarding to the arquitecture of your box.
Well actually the thing started to bite my head, when i started thinking in making some programs in java for my palm or cellphone.
Any thoughts, pages, and stuff are welcome.
Traditionally a compiler will generate machine instructions specific for the destination architecture, and it is quite possible to build a binary for an architecture different to the one on which the compiler resides (after all it is only generating machine instructions, not trying to execute them)
Traditionally, that was the picture (albeit very simplified) Java and other byte code languages changed that picture a little. The Java compiler will take the source code and generate machine independent instructions which are executed on the target machine via the Java Virtual Machine (JVM) the JVM must reside on the target machine for the java program to work but the source code doesn't need to be recompiled for that specific architecture.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.