Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
Can I crosscompile a driver with an intel dualcore processor to be used in a celeron machine, and if so, the how? Both machines are running Linux Mint 7. The driver in question is ov51x-jpeg.
You should provide more info about what it is you're working with. That said, I am fairly sure there isn't going to be any difference if you haven't asked for some kind of multi-threaded optimizations or libraries, and I am entirely sure that it will run on both systems either way.
I could install Linux Mint 7 on 4 different machines, one of which is has AMD Athlon, one has AMD 3-core, one has dual core T2410 and one has an Intel dual core (I don't remembet which dual core).
I guess AMDs are different in some respects, but are Intel dual cores?
(I mean compiler produced binary here)
Do I have to use cross-compilation? If so, how do I get gcc to compile for another architecture?
Last edited by turboscrew; 08-05-2009 at 11:35 PM.
At least the kernel is different for AMD. I guess GCC uses processor specific features for more optimal binary. To my knowledge AMD and Pentium have differencies in instruction set even if there is quite large common subset. It's just if GCC might use the specific instructions.
Another matter is multicore pentium. Does it (could it) show in the GCC-generated code if code is compiled for a multicore pentium?
I'd also like to know what should I do to to be able to cross-compile with GCC for another processor architecture.
Ah, gotcha. You should be fine - the differences between AMD and Intel are small and tend to be relevant only in extremely specific circumstances (as there is some adoption of each others' instructions and little use of instructions that aren't valid on both). Also, unless you are writing significant parallelization into your code, there's no reason to worry about that, either (and I'm not sure gcc even has a 'multithreading' mode, since that functionality kind of exists above the level gcc works on, if you get me). Just compile normally and your program will work on all x86 and x86-compatible (read: x86-64) processors. Note that your distro does not have separate repos for AMD, Intel, 2x-SMT, 8x-SMT, and so on - just x86 and x86-64.
If you do want to cross-compile - and we're talking about PPC, ARM, etc. here - I believe there is a -march option to gcc, but you will have to research that yourself if you're interested.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.