is devx sfs gcc is automatically do cross-compile ?

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
caffeinfx
Posts: 22
Joined: Thu 08 May 2014, 21:32

is devx sfs gcc is automatically do cross-compile ?

#1 Post by caffeinfx »

Assuming i compile code that only used standard library and fews system call, socket, read, write, poll, signal, pthread.
the compile command is:

Code: Select all

gcc -pthread -o program program.c
when i check properties of compiled program in ROX-file manager there's message:
"ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, not stripped"
this message said its like the program compiled for machine 32 bit with Linux kernel 2.6.24 , so i wonder is it will run fine on other linux machine 32/64 bit use kernel 2.6.24 or higher ?

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

#2 Post by puppyluvr »

:D Hello,
Should work on most 32 bit Puppies, unless the program depends on a kernel specific feature, which may prevent it running on an older kernel.
However, generally, 32 and 64 bit are incompatable.
However, iirc it should still run in 32 bit mode on a 64 bit machine.
Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...

caffeinfx
Posts: 22
Joined: Thu 08 May 2014, 21:32

#3 Post by caffeinfx »

Hello puppyluvr :)
Thanks for quick answer. how to enable 32 bit mode to run 32 bit app on 64 bit machine ?

Post Reply