On Fri, Dec 16, 2011 at 02:06:10AM -0700, T.C. Hollingsworth wrote: > On Fri, Dec 16, 2011 at 1:51 AM, Mahdi Foladgar <foladgar@xxxxxxxxx> wrote: > > I have two computer installed FC16 on them. On the First FC16x86-64 > > installed and on the other FC16-i386 installed. > > Can I compile some program on one and run on the other? > > I want to compile my program on 64 bit os and run on 32bit os or vice versa. > > Programs compiled 32-bit will run just fine on 64-bit operating > systems, so long as you have all the necessary 32-bit libraries. > However, 64-bit binaries will not work on 32-bit systems. You can > also compile 32-bit applications on 64-bit systems and vice versa, but > you need a cross compiler setup which can be a PITA. You don't need a cross compiler to compile 32-bit (i?86) applications on 64-bit (x86_64) systems, x86_64 gcc supports both -m64 and -m32 compilation (but i?86 gcc does not). You need the appropriate *-devel.i686 packages installed though, but that is just sudo yum install away. Jakub -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org