- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is with respect to version 11.1.073 of the compiler for Linux.
The compiler is installed on a 32-bit linux system.
Can you cross-compile to 64-bit executables/libraries/shared libraries on such a platform.
I understand you can not RUN OR USE those binaries on a 32-bit system. But I would like
to know if I can create them there.
Or do I have to re-install the compiler on a 64-bit linux system if I want to make 64-bit binaries?
Thanks!
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, it's well outside what is supported. You would first need a full installation of g++ cross compiler (including glibc) for your x86_64 target. As that isn't provided by the supported linux distros to my knowledge, that part of it would be a do-it-yourself project. All the prerequisites are already present in a g++ installation on linux x86_64.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How about the other way? Assuming I install packages like ia32-libs and the like, can you build 32-bit binaries with the Intel compiler on a 64-bit system? (I would like to have a unified build machine rather than having to have separate 32-bit and 64-bit build machines.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Assuming you have the compiler and environment configured correctly you can build and run/debug 32-bit binaries on 64-bit platform.
Jim Dempsey
Jim Dempsey
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page