On Thu, Oct 22, 2009 at 09:27:27AM -0400, Peter Bloomfield wrote:
Hello there,
I am hoping that some one can point me in the right direction here. I have a program that compiles under both 32-bit and 64-bit architecture. What I want to be able to do is determine which way the program was compiled either 32-bit or 64-bit, similar to 'file' command, but called from within the executable itself. I use the system call 'uname' to determine the machine architecture that the program is executing on; does anyone know of a similar call to determine which compilation.
What exactly do you want to know and why? Your program should not care at all if it is 32 or 64bit, but use sizeof() for data types and similar, and for storing data on disk a platform transparent dataformat. Ciao, Marcus -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org