LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-14-2005, 03:52 PM   #1
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Rep: Reputation: 30
Question g77: 8 btyes on the PC?


To All:

I'm using g77-fortran on the PC via Xandros-linux.
On this machine, real is 3 bytes and double precision
is 4 bytes. [For most unix machines, real is 4 bytes
and double precision is 8 bytes.] Is there any "quick
and dirty" way to force 8 bytes computation on the PC?
I.e., something simple like an option for g77,

g77 -64bits -o <executable> <fortran code>

I do NOT want to do a major rewrite on the code
(including porting to C or C++). Also, I already
tried using REAL*8. The machine defaults to 4 bytes.

Any "quick and dirty" solution with other fortran
compiler (g90, etc) would also be okay (as long as I
can use the same code more or less).

Thanks in advanced for your help.

Sheng-Chieh
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
install of g77 or g77 rpm munichtexan Linux - Newbie 1 11-18-2005 02:56 PM
Compiling with g77 thank you very much...but I solved compile with g77 gambato79 Fedora 9 07-19-2005 11:35 AM
g77 is not... Jozsef Linux - Software 4 10-08-2004 02:28 PM
how should I install g77 pkuer Linux - Software 1 07-15-2004 09:41 AM
G77 Debugger? star geezer Linux - Software 5 03-04-2003 05:35 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration