Text-only | Table of Contents (frame/ no frame) |
(8) 32 and 64-bit Applications |
64-bit computer:
32-bit computer:
Compilers on 64-bit
computer:
If you try to run a 64-bit executable on a 32-bit
computer, you
will get an error message that says,
"Exec format error. Wrong
Architecture".
andes:~rcomp1/softdev> gcc -m32 -c integrator.c
andes:~rcomp1/softdev> gcc -m32 -c linear_function.c
andes:~rcomp1/softdev> file integrator.o
integrator.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped
andes:~rcomp1/softdev> file linear_function.o
linear_function.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped
andes:~rcomp1/softdev> gcc -m32 -o integrator integrator.o linear_function.o -lgsl -lgslcblas
andes:~rcomp1/softdev> file integrator
integrator: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5,
dynamically linked (uses shared libs), not stripped
32-64bit.src last modified Mar 19, 2007 | Introduction | Table of Contents (frame/no frame) |
Printable (single file) |
© Dartmouth College |