Greetings!
Reinhard Katzmann <[EMAIL PROTECTED]>, wrote:
>Hi folks!
>
>I've created an RPM file for linux, Halloween IV (should
>be similar to Redhat 6.1). Just tell me a place where
>I should upload it to.
>
>I had to convert all text files to unix (dos2unix), renamed
>all .for files to .f (f2c wanted that), but decided to use
>g77 instead of f2c for two reason: The code is more stable
>(does not crash when invoking with a filename) and it is
>smaller as well.
I (just for fun, and to try out lcc-win32 on my PC) recently attempted to
use f2c to translate, then compile PMX under lcc-win32... (PC, Win95).
For what it's worth, I found that the crash on startup when a file name is
on the
command line can be fixed by following the hint Don put in the code...
At lines 125/126 (and also at lines 138/139 is this code:
call getarg(1,jobname,idum) ! May need to replace this w/ next line
c call getarg(1,jobname)
Simply changing it to:
c call getarg(1,jobname,idum) ! May need to replace this w/ next line
call getarg(1,jobname)
... compiles successfully, and (more importantly) runs successfully, both
with
a file name on the command line, and in original mode! I suspect that there
are
differences in the libraries for various C compiler implementations for the
number
of arguments allowed for "getarg." Interesting to me (but common to C) that
such
differences would not be detected better at compile time?
Caution: Further testing of the translated C version was halted by the need
to
get back to work! :-)
BTW, (PC users) I found that installing the LCC-WIN32 freeware C Compiler
was
straightforward, except for an install glitch when the FORTRAN module (f2c)
is
installed: (the menu shortcut for starting lcc-win32 is overwritten as a
shortcut to
read the FORTRAN to C manual... easily fixed by creating another shortcut to
the
lcc editor again.)
If you are a PC user and want to have a C compiler (Free), here are my
opinions
on three free C compiler installations that may be interesting to you:
Turbo C v2.01 -
http://community.borland.com/museum/borland/software/TC201.zip
(Think Old DOS machine - 640K limitations, but simple, fun and FREE!)
DJGPP - http://www.delorie.com/djgpp/
(An extensive and comprehensive port of the GNU C/C++/Fortran compiler
family to
the PC... lots of newsgroup support, but setup can be a challenge... I would
recommend
this installation for someone who already has lots of unix experience with
gcc. I still
fumble around in this environment, but it works GREAT for a flat model
implemention:
i.e. your installed RAM is one big region you can use.)
LCC-Win32 - http://www.cs.virginia.edu/~lcc-win32
(This has a nice Windows GUI. In my (humble) opinion, this is attempting to
look a
bit like Microsoft Visual Studio tools... Good work, and easy to install!.
I recommend
this tool for the "need to be free," high-power and quick start up C
compiler.)
And... I have done nothing significant with any of the above :-)) (Just
recreational
computing for the time being. :-))
My two cents worth, and Merry Christmas to all! (now... back to work!!)
Regards
Joel Hunsberger