Seeking 64-bit Linux Compiler for Fortran 95 Binary

Click For Summary
SUMMARY

The discussion focuses on compiling a 64-bit Fortran 95 binary using the GCC compiler on a 64-bit Linux system. The command provided is g77 -m64 <source file>, which allows targeting 64-bit architecture even in a 32-bit environment. It is emphasized that the resulting executable must be transferred to a 64-bit machine for execution. Additionally, the offer to compile the source code is made for those without access to a Linux environment.

PREREQUISITES
  • Familiarity with Fortran 95 programming
  • Understanding of GCC (GNU Compiler Collection) usage
  • Knowledge of 64-bit vs. 32-bit architecture
  • Basic command line skills in a Linux environment
NEXT STEPS
  • Research the differences between 32-bit and 64-bit architectures
  • Learn about GCC compiler options for Fortran
  • Explore how to transfer executables between different architecture systems
  • Investigate alternatives to g77 for compiling Fortran 95, such as gfortran
USEFUL FOR

Software developers, particularly those working with scientific computing in Fortran, and anyone needing to compile Fortran binaries on Linux systems.

jack47
Messages
16
Reaction score
0
hi, I was wondering if anyone was running 64-bit linux. In particular, I need someone to compile a 64-bit fortran95 binary for me.
 
Computer science news on Phys.org
If your using gcc you can do this:

g77 -m64 <source file>

This will target your code for 64bit even though your in a 32bit environment. You won't be able to run the code unless you copy the executeable onto a 64 bit machine.

If you don't have linux give me the source and I'll compile it for you. Otherwise you can probably do it yourself.
 
Last edited:

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 37 ·
2
Replies
37
Views
7K
Replies
1
Views
7K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
6
Views
3K
Replies
6
Views
5K