running 64-bit binaries on a 32-bit OS

Khem Raj kraj@mvista.com
Thu Apr 26 21:09:00 GMT 2007


On Apr 24, 2007, at 10:52 AM, Robert P. J. Day wrote:

>
>   sadly, i don't remember if i asked about this before but here's what
> i want to do.
>
>   i have a number of AMD athlon 64 systems, but i'm going to install
> on them only the 32-bit version of fedora core and, on these systems,
> i want to demonstrate building a cross-compiler using crosstool.
>
>   AFAIK, i can build a 64-bit toolchain, then compile a simple "hello,
> world" using that, right?

yes

> i can't just run a 64-bit binary on the
> 32-bit OS, so testing a 64-bit binary would truly show that the
> toolchain was built correctly, right?

yes. You can also use file command on generated binary and check the  
arch on which it is supposed to run.

> with all of the libs properly
> built and so on.
>
> rday
>
> -- 
> ====================================================================== 
> ==
> Robert P. J. Day
> Linux Consulting, Training and Annoying Kernel Pedantry
> Waterloo, Ontario, CANADA
>
> http://fsdev.net/wiki/index.php?title=Main_Page
> ====================================================================== 
> ==
>
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
>




Khem Raj <kraj@mvista.com>
MontaVista Software Inc.



--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list