From: Luka Djigas on
GNU corporation always leaves me baffled with their approach to simplicity.

To put it simple; I'm looking for a free compiler which can run on an usb stick, for
a demonstration of some features, on computers which are handled by a rather
heavy-to-deal-with administrator, who doesn't want to install a compiler already bought by
the faculty he works for (don't ask me anything, I'm already on thin nerves regarding the man).

I always knew of those two from GNU world, but never used either of them.
If I got things right, there were three in the beginning, g77, gfortran and g95.
g77 is nowadays obsolete, and therefore out of the picture. So that leaves two: gfortran and g95.

1. Can any of these two be installed on an usb stick (I have gfortran installed on my computer, it
didn't seem to mess to much about in the registry) as to work portably from a stick ?
Can I just copy it from my Program Files directory on an usb and run it ?
(I cannot test it for sure since I have only one machine).

2. This is of lesser importance, but which of the two above is considered more up to date as to the
latest fortran'03 features ?
It is, I repeat, of lesser importance, but their information pages are so confusing to me, that I
just cannot understand where development of each of them currently stands.


With regards to all, as always,
Luka
From: FX on
> 1. Can any of these two be installed on an usb stick (I have gfortran
> installed on my computer, it didn't seem to mess to much about in the
> registry) as to work portably from a stick ? Can I just copy it from my
> Program Files directory on an usb and run it ? (I cannot test it for
> sure since I have only one machine).

This should work for gfortran, at it finds all its files by relative
path. (It stores strictly nothing in registry, and can get some help.)

For G95, if I remember correctly, you might need to have an environment
variable set (LIBRARY_PATH or G95_LIBRARY_PATH) to find its own files
(see http://www.g95.org/windows_faq.shtml for details).

> 2. This is of lesser importance, but which of the two above is
> considered more up to date as to the latest fortran'03 features ? It
> is, I repeat, of lesser importance, but their information pages are so
> confusing to me, that I just cannot understand where development of
> each of them currently stands.

They both have partial, but far from complete support for F2003. In
particular, g95 has co-array supports (runtime is shareware), while
gfortran requires very recent versions for some of the more OO stuff
(polymorphism, type-bound procedures, etc.).

But I only follow development of gfortran from far away, nowadays, so
I'll let others comment.

(PS: Looking at the website, it seems like g95 development is slow these
days.)

--
FX
From: jfh on
On Mar 15, 10:45 am, Luka Djigas <ldigas@___gmail___.com> wrote:
> GNU corporation always leaves me baffled with their approach to simplicity.
>
> To put it simple; I'm looking for a free compiler which can run on an usb stick, for
> a demonstration of some features, on computers which are handled by a rather
> heavy-to-deal-with administrator, who doesn't want to install a compiler already bought by
> the faculty he works for (don't ask me anything, I'm already on thin nerves regarding the man).
>
> I always knew of those two from GNU world, but never used either of them.
> If I got things right, there were three in the beginning, g77, gfortran and g95.
> g77 is nowadays obsolete, and therefore out of the picture. So that leaves two: gfortran and g95.
>
> 1. Can any of these two be installed on an usb stick (I have gfortran installed on my computer, it
> didn't seem to mess to much about in the registry) as to work portably from a stick ?
> Can I just copy it from my Program Files directory on an usb and run it ?
> (I cannot test it for sure since I have only one machine).
>
> 2. This is of lesser importance, but which of the two above is considered more up to date as to the
> latest fortran'03 features ?
> It is, I repeat, of lesser importance, but their information pages are so confusing to me, that I
> just cannot understand where development of each of them currently stands..
>
> With regards to all, as always,
> Luka

Am I missing something here? The g95 or gfortran you download to your
computer is different on different machines. You can upload any
particular version(s) to your stick, but to be portable you'd have to
put many different versions on the stick and download the appropriate
one to whatever machine you're currently using, unless of course you
want to put the source code on your stick and recompile it every time
you use g95 or gfortran. Look, for example, at how many
different binaries exist on the g95 web site.

John Harper
From: Luka Djigas on
On Sun, 14 Mar 2010 16:08:33 -0700 (PDT), jfh <john.harper(a)vuw.ac.nz> wrote:

>Am I missing something here? The g95 or gfortran you download to your
>computer is different on different machines. You can upload any
>particular version(s) to your stick, but to be portable you'd have to
>put many different versions on the stick and download the appropriate
>one to whatever machine you're currently using, unless of course you
>want to put the source code on your stick and recompile it every time
>you use g95 or gfortran. Look, for example, at how many
>different binaries exist on the g95 web site.
>
>John Harper

Ah, my mistake here. I misused the term portable, as in "can be started on my Windows machine
and can be started on some other Windows running machine". I did not mean portable as in
"between platforms".

with regards,
Luka
From: Richard Maine on
Luka Djigas <ldigas@___gmail___.com> wrote:

> GNU corporation always leaves me baffled with their approach to simplicity.

Well, if you think that GNU is a corporation, it is indeed likely to
bafflle you. :-( It isn't.

Afraid I know very little about the Windows ports of either g95 or
gfortran.

--
Richard Maine | Good judgment comes from experience;
email: last name at domain . net | experience comes from bad judgment.
domain: summertriangle | -- Mark Twain