* DEC compilers available for Linux?
@ 2000-09-18 4:00 darcher8987
2000-09-18 4:00 ` Hack
` (3 more replies)
0 siblings, 4 replies; 21+ messages in thread
From: darcher8987 @ 2000-09-18 4:00 UTC (permalink / raw)
Hi.
I'm doing numerical (floating point) computation, and I'm considering
building an alpha cluster, either from Compaq or from a third party such
as Microway. I'd like to run linux rather than Tru64 Unix, but I hear
that the Tru64 compilers optimize better. I've also heard that Compaq
sells compilers for Linux. True? Does anyone have any experience with
these?
Thanks!
Sent via Deja.com http://www.deja.com/
Before you buy.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: DEC compilers available for Linux?
2000-09-18 4:00 DEC compilers available for Linux? darcher8987
@ 2000-09-18 4:00 ` Hack
2000-09-19 4:00 ` RL Griswold
` (2 more replies)
2000-09-18 4:00 ` Greg Lindahl
` (2 subsequent siblings)
3 siblings, 3 replies; 21+ messages in thread
From: Hack @ 2000-09-18 4:00 UTC (permalink / raw)
Yup. SuSE or Red Hat will do the job. The EGCS stuff will do what you need
it to do. It's ANSI compliant anyway. All of that will put you in the
32-bit realm. It'll allow you to do long and double long computations with
no problems. But, it is 32-bit. Now if you want to go the 64-bit route
then you only have one option. And that is FreeBSD. When booting from SRM
it puts FreeBSD in 64-bit mode, and the compilers are also ANSI compliant.
So if you want Linux, I'd suggest SuSE first. Then RH. If you want UNIX
then get FreeBSD. I wrote a little something about this earlier. Just pul
a search from "Hack".
But before you do anything make sure that the OS supports the box you want
to use. If not it is just wasted money all the way 'round.
Hack
<darcher8987@my-deja.com> wrote in message
news:8q5i9f$rtv$1@nnrp1.deja.com...
> Hi.
>
> I'm doing numerical (floating point) computation, and I'm considering
> building an alpha cluster, either from Compaq or from a third party such
> as Microway. I'd like to run linux rather than Tru64 Unix, but I hear
> that the Tru64 compilers optimize better. I've also heard that Compaq
> sells compilers for Linux. True? Does anyone have any experience with
> these?
>
> Thanks!
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: DEC compilers available for Linux?
2000-09-18 4:00 DEC compilers available for Linux? darcher8987
2000-09-18 4:00 ` Hack
2000-09-18 4:00 ` Greg Lindahl
@ 2000-09-18 4:00 ` Serguei Patchkovskii
2000-09-19 0:42 ` W Bauske
2000-09-24 4:00 ` Don Baker
3 siblings, 1 reply; 21+ messages in thread
From: Serguei Patchkovskii @ 2000-09-18 4:00 UTC (permalink / raw)
darcher8987@my-deja.com wrote:
: as Microway. I'd like to run linux rather than Tru64 Unix, but I hear
: that the Tru64 compilers optimize better. I've also heard that Compaq
: sells compilers for Linux. True?
No. They give the alpha/linux compilers (C, C++, and Fortran) for free.
Fortran: http://www6.compaq.com/fortran/
C: http://www.unix.digital.com/linux/compaq_c/index.html
Fortran and C++ compilers are free for personal and educational use; C is
just free - no matter what.
/Serge.P
---
Home page: http://www.cobalt.chem.ucalgary.ca/ps/
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: DEC compilers available for Linux?
2000-09-18 4:00 DEC compilers available for Linux? darcher8987
2000-09-18 4:00 ` Hack
@ 2000-09-18 4:00 ` Greg Lindahl
2000-09-18 4:00 ` Serguei Patchkovskii
2000-09-24 4:00 ` Don Baker
3 siblings, 0 replies; 21+ messages in thread
From: Greg Lindahl @ 2000-09-18 4:00 UTC (permalink / raw)
darcher8987@my-deja.com writes:
> I'm doing numerical (floating point) computation, and I'm considering
> building an alpha cluster, either from Compaq or from a third party such
> as Microway. I'd like to run linux rather than Tru64 Unix, but I hear
> that the Tru64 compilers optimize better. I've also heard that Compaq
> sells compilers for Linux. True? Does anyone have any experience with
> these?
I've built a Alpha cluster (276 cpus so far) that runs Linux and uses
Compaq's compilers for Linux. This cluster gets a higher per-cpu
performance on the MM5 weather forecasting code than an IBM SP or the
Compaq SC, so I'd say the combination is pretty good.
-- g
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: DEC compilers available for Linux?
2000-09-18 4:00 ` Serguei Patchkovskii
@ 2000-09-19 0:42 ` W Bauske
0 siblings, 0 replies; 21+ messages in thread
From: W Bauske @ 2000-09-19 0:42 UTC (permalink / raw)
Serguei Patchkovskii wrote:
>
> darcher8987@my-deja.com wrote:
> : as Microway. I'd like to run linux rather than Tru64 Unix, but I hear
> : that the Tru64 compilers optimize better. I've also heard that Compaq
> : sells compilers for Linux. True?
>
> No. They give the alpha/linux compilers (C, C++, and Fortran) for free.
>
> Fortran: http://www6.compaq.com/fortran/
> C: http://www.unix.digital.com/linux/compaq_c/index.html
>
> Fortran and C++ compilers are free for personal and educational use; C is
> just free - no matter what.
>
You're supposed to pay for it if you use it for commercial
work.... Price is quite reasonable though.
Wes
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: DEC compilers available for Linux?
2000-09-18 4:00 ` Hack
2000-09-19 4:00 ` RL Griswold
@ 2000-09-19 4:00 ` Robert Harley
2000-09-19 6:12 ` Takeyasu Wakabayashi
2 siblings, 0 replies; 21+ messages in thread
From: Robert Harley @ 2000-09-19 4:00 UTC (permalink / raw)
"Hack" <washultz@earthlnik.net> writes:
> Yup. SuSE or Red Hat will do the job. [...]
> But, it is 32-bit. Now if you want to go the 64-bit route
> then you only have one option. And that is FreeBSD. [...]
If you don't have the slightest clue what you're talking about, why
don't you shut up and avoid spouting such nonsense?
Dumb-ass.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: DEC compilers available for Linux?
2000-09-19 6:15 ` Takeyasu Wakabayashi
@ 2000-09-19 4:00 ` Nick Ntarmos
2000-09-19 4:00 ` Takeyasu Wakabayashi
0 siblings, 1 reply; 21+ messages in thread
From: Nick Ntarmos @ 2000-09-19 4:00 UTC (permalink / raw)
Hi there.
On 19 Sep 2000, Takeyasu Wakabayashi wrote:
> Takeyasu Wakabayashi <twakaba@eco.toyama-u.ac.jp> writes:
>
> > #include <stdio.h>
> > #include <limits.h>
> >
> > int main(void)
> > {
> > printf("sizeof pointer: %d bits\n", sizeof(void *) * CHAR_BIT);
> > printf("sizeof double : %d bits\n", sizeof(double) * CHAR_BIT);
> > printf("sizeof float : %d bits\n", sizeof(float *) * CHAR_BIT);
> > printf("sizeof long : %d bits\n", sizeof(long *) * CHAR_BIT);
> > return 0;
> > }
>
> Typos:
>
> float * -> float
> long * -> long
>
> Float is 32-bit on Linux/Alpha, indeed.
>
I think you've got it all wrong. Just compiled and run your program,
getting the following output:
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release):
sizeof pointer: 64 bits
sizeof double : 64 bits
sizeof float : 64 bits
sizeof long : 64 bits
Compaq C V6.2-504 ccc-6.2.9.504-2:
sizeof pointer: 64 bits
sizeof double : 64 bits
sizeof float : 64 bits
sizeof long : 64 bits
So you either have a non-64 bit alpha :} or something is very wrong.
See ya,
Nick.
--
------------------------------------
Ntarmos Nikos.
Information Systems Center.
Technical University of Crete.
------------------------------------
e-mail: darmnik @ isc.tuc.gr
ccompiler @ yahoo.com
ccompiler @ sourceforge.net
------------------------------------
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: DEC compilers available for Linux?
2000-09-19 4:00 ` Nick Ntarmos
@ 2000-09-19 4:00 ` Takeyasu Wakabayashi
0 siblings, 0 replies; 21+ messages in thread
From: Takeyasu Wakabayashi @ 2000-09-19 4:00 UTC (permalink / raw)
Nick Ntarmos <darmnik@isc.tuc.gr> writes:
> Hi there.
> <SNIP>
> > Typos:
> >
> > float * -> float
> > long * -> long
> >
> > Float is 32-bit on Linux/Alpha, indeed.
> >
> sizeof pointer: 64 bits
> sizeof double : 64 bits
> sizeof float : 64 bits
> sizeof long : 64 bits
>
> Compaq C V6.2-504 ccc-6.2.9.504-2:
>
> sizeof pointer: 64 bits
> sizeof double : 64 bits
> sizeof float : 64 bits
> sizeof long : 64 bits
>
> So you either have a non-64 bit alpha :} or something is very wrong.
Nothing is wrong except your eyes. You obviously haven't applied
the "patch" I've posted. Pointers are 64-bits on Linux/Alpha, so
sizeof(float *) and sizeof(long *) both return 8, no wonder.
--
Takeyasu Wakabayashi
Faculty of Economics, Toyama University
twakaba@eco.toyama-u.ac.jp
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: DEC compilers available for Linux?
2000-09-19 6:12 ` Takeyasu Wakabayashi
@ 2000-09-19 4:00 ` Warner Bruns
2000-09-19 4:00 ` Takeyasu Wakabayashi
2000-09-19 6:15 ` Takeyasu Wakabayashi
1 sibling, 1 reply; 21+ messages in thread
From: Warner Bruns @ 2000-09-19 4:00 UTC (permalink / raw)
In article <m2pum0gb5p.fsf@eco.toyama-u.ac.jp>, Takeyasu Wakabayashi
<twakaba@eco.toyama-u.ac.jp> writes:
> Takeyasu Wakabayashi <twakaba@eco.toyama-u.ac.jp> writes:
>
> > #include <stdio.h>
> > #include <limits.h>
> >
> > int main(void)
> > {
> > printf("sizeof pointer: %d bits\n", sizeof(void *) * CHAR_BIT);
> > printf("sizeof double : %d bits\n", sizeof(double) * CHAR_BIT);
> > printf("sizeof float : %d bits\n", sizeof(float *) * CHAR_BIT);
> > printf("sizeof long : %d bits\n", sizeof(long *) * CHAR_BIT);
> > return 0;
> > }
>
> Typos:
>
> float * -> float
> long * -> long
>
> Float is 32-bit on Linux/Alpha, indeed.
>
> --
> Takeyasu Wakabayashi
> Faculty of Economics, Toyama University
> twakaba@eco.toyama-u.ac.jp
float is 32 bits on Cray T3E as well.
Does this mean a Cray T3E is a 32 bits machine ;-)?
Warner
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: DEC compilers available for Linux?
2000-09-19 4:00 ` Warner Bruns
@ 2000-09-19 4:00 ` Takeyasu Wakabayashi
2000-09-19 4:00 ` Tony Hammitt
0 siblings, 1 reply; 21+ messages in thread
From: Takeyasu Wakabayashi @ 2000-09-19 4:00 UTC (permalink / raw)
bruns@tetibm2.ee.TU-Berlin.DE (Warner Bruns) writes:
> float is 32 bits on Cray T3E as well.
> Does this mean a Cray T3E is a 32 bits machine ;-)?
It just means some naive programmers believing double and float
are both 32-bits will get upset when working on Cray T3E. Compilers
should issue a lot of warning messages on implicit type casts.
Again, Linux/Alpha is a true 64-bit operating system,
in the sense its address space is 64-bit. Current implementation
allows a user space of 2^42 bytes and it seems to be a limitation
imposed by PAL code. I'm no expert on computer, so I leave the
64-bitness issue to other more knowledgeable people.
--
Takeyasu Wakabayashi
Faculty of Economics, Toyama University
twakaba@eco.toyama-u.ac.jp
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: DEC compilers available for Linux?
2000-09-19 4:00 ` Takeyasu Wakabayashi
@ 2000-09-19 4:00 ` Tony Hammitt
0 siblings, 0 replies; 21+ messages in thread
From: Tony Hammitt @ 2000-09-19 4:00 UTC (permalink / raw)
Float is 32 bits on any alpha and double is 64. There are IEEE
standards for these things...
What confuses Cray programmers the first time is that on the big
vector machines, 'single' precision is 64 bits and 'double' precision
is 128.
The big advantage to using float type on an alpha (if you can afford
the loss of precision) is that the cache line holds twice as many
'numbers' which is quite often the limiting factor in performance,
i.e. 'how much data can we get pumped through the bus to the processor'.
But once the data is on the processor, doing calculations will
take just as much time with float or double. They use the same
transistors to do either, they just fix up the leftover bits
with floating point calculations to come out to what they should be
according to IEEE rules.
Compilers should issue warnings about implicit type casts =-]
This has been a most confusing thread...
Regards,
Tony Hammitt
P.S. If you think this is strange, try thinking about the IBM
RS64 line of processors that can have 32 or 64 bit address space
threads running concurrently. Some people never did understand
that it would execute 32 bit code just like always but could also
execute 64 bit code (like the OS) at the same time. It even has
twinned libraries like a PowerMac. It really is confusing..
Takeyasu Wakabayashi wrote:
>
> bruns@tetibm2.ee.TU-Berlin.DE (Warner Bruns) writes:
>
> > float is 32 bits on Cray T3E as well.
> > Does this mean a Cray T3E is a 32 bits machine ;-)?
>
> It just means some naive programmers believing double and float
> are both 32-bits will get upset when working on Cray T3E. Compilers
> should issue a lot of warning messages on implicit type casts.
>
> Again, Linux/Alpha is a true 64-bit operating system,
> in the sense its address space is 64-bit. Current implementation
> allows a user space of 2^42 bytes and it seems to be a limitation
> imposed by PAL code. I'm no expert on computer, so I leave the
> 64-bitness issue to other more knowledgeable people.
>
> --
> Takeyasu Wakabayashi
> Faculty of Economics, Toyama University
> twakaba@eco.toyama-u.ac.jp
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: DEC compilers available for Linux?
2000-09-18 4:00 ` Hack
@ 2000-09-19 4:00 ` RL Griswold
2000-09-26 1:20 ` ttk
2000-09-19 4:00 ` Robert Harley
2000-09-19 6:12 ` Takeyasu Wakabayashi
2 siblings, 1 reply; 21+ messages in thread
From: RL Griswold @ 2000-09-19 4:00 UTC (permalink / raw)
Hack wrote:
>
> Yup. SuSE or Red Hat will do the job. The EGCS stuff will do what you need
> it to do. It's ANSI compliant anyway. All of that will put you in the
> 32-bit realm. It'll allow you to do long and double long computations with
> no problems. But, it is 32-bit. Now if you want to go the 64-bit route
> then you only have one option. And that is FreeBSD. When booting from SRM
> it puts FreeBSD in 64-bit mode, and the compilers are also ANSI compliant.
I have my own sizeof program that I run on different platforms. Here's
what it shows when I run it on my Alpha Linux system. The first program
was compiled with gcc, and the second with ccc:
/home/richard/src > ./sizeof_tst.gcc
char 1
short 2
int 4
long 8
long long 8
float 4
double 8
long double 8
void* 8
size_t 8
/home/richard/src > ./sizeof_tst.ccc
char 1
short 2
int 4
long 8
long long 8
float 4
double 8
long double 8
void* 8
size_t 8
Here's the program:
#include <stdio.h>
#include <sys/types.h>
main(){
printf( "char %d\n", sizeof( char ) );
printf( "short %d\n", sizeof( short ) );
printf( "int %d\n", sizeof( int ) );
printf( "long %d\n", sizeof( long ) );
printf( "long long %d\n", sizeof( long long ) );
printf( "float %d\n", sizeof( float ) );
printf( "double %d\n", sizeof( double ) );
printf( "long double %d\n", sizeof( long double ) );
printf( "void* %d\n", sizeof( void* ) );
printf( "size_t %d\n", sizeof( size_t ) );
}
--
Richard Griswold - griswold@acm.org
#include <stddisclaim.h>
Save the whales! Trade them for valuable prizes!
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: DEC compilers available for Linux?
2000-09-18 4:00 ` Hack
2000-09-19 4:00 ` RL Griswold
2000-09-19 4:00 ` Robert Harley
@ 2000-09-19 6:12 ` Takeyasu Wakabayashi
2000-09-19 4:00 ` Warner Bruns
2000-09-19 6:15 ` Takeyasu Wakabayashi
2 siblings, 2 replies; 21+ messages in thread
From: Takeyasu Wakabayashi @ 2000-09-19 6:12 UTC (permalink / raw)
"Hack" <washultz@earthlnik.net> writes:
> Yup. SuSE or Red Hat will do the job. The EGCS stuff will do what you need
> it to do. It's ANSI compliant anyway. All of that will put you in the
> 32-bit realm. It'll allow you to do long and double long computations with
> no problems. But, it is 32-bit. Now if you want to go the 64-bit route
> then you only have one option. And that is FreeBSD. When booting from SRM
> it puts FreeBSD in 64-bit mode, and the compilers are also ANSI compliant.
>
??? What do you mean by 32-bit? Linux/Alpha employs LP64 model
even before FreeBSD/Alpha existed. The first 64-bit version was
BLADE 0.2/0.3 from Digital Semiconductor with 1.3 kernel, which
was made public in 1996(correct me if I'm wrong).
Besides, "the" compiler of FreeBSD is nothing but GCC(or EGCS,
if you insist on this name.) Linux/Alpha has Compaq C/C++/Fortran
which are optimized for Alpha architecture.
If you are in doubt, try the following program on Linux/Alpha
to see it's a 64-bit OS:
#include <stdio.h>
#include <limits.h>
int main(void)
{
printf("sizeof pointer: %d bits\n", sizeof(void *) * CHAR_BIT);
printf("sizeof double : %d bits\n", sizeof(double) * CHAR_BIT);
printf("sizeof float : %d bits\n", sizeof(float *) * CHAR_BIT);
printf("sizeof long : %d bits\n", sizeof(long *) * CHAR_BIT);
return 0;
}
--
Takeyasu Wakabayashi
Faculty of Economics, Toyama University
twakaba@eco.toyama-u.ac.jp
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: DEC compilers available for Linux?
2000-09-19 6:12 ` Takeyasu Wakabayashi
2000-09-19 4:00 ` Warner Bruns
@ 2000-09-19 6:15 ` Takeyasu Wakabayashi
2000-09-19 4:00 ` Nick Ntarmos
1 sibling, 1 reply; 21+ messages in thread
From: Takeyasu Wakabayashi @ 2000-09-19 6:15 UTC (permalink / raw)
Takeyasu Wakabayashi <twakaba@eco.toyama-u.ac.jp> writes:
> #include <stdio.h>
> #include <limits.h>
>
> int main(void)
> {
> printf("sizeof pointer: %d bits\n", sizeof(void *) * CHAR_BIT);
> printf("sizeof double : %d bits\n", sizeof(double) * CHAR_BIT);
> printf("sizeof float : %d bits\n", sizeof(float *) * CHAR_BIT);
> printf("sizeof long : %d bits\n", sizeof(long *) * CHAR_BIT);
> return 0;
> }
Typos:
float * -> float
long * -> long
Float is 32-bit on Linux/Alpha, indeed.
--
Takeyasu Wakabayashi
Faculty of Economics, Toyama University
twakaba@eco.toyama-u.ac.jp
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: DEC compilers available for Linux?
2000-09-18 4:00 DEC compilers available for Linux? darcher8987
` (2 preceding siblings ...)
2000-09-18 4:00 ` Serguei Patchkovskii
@ 2000-09-24 4:00 ` Don Baker
2000-09-24 4:00 ` Rob Komar
2000-09-24 4:00 ` Serguei Patchkovskii
3 siblings, 2 replies; 21+ messages in thread
From: Don Baker @ 2000-09-24 4:00 UTC (permalink / raw)
Yes, Compaq sells Fortran compilers, but do they sell a good debugger
to go with them? The last I heard, Compaq Visual Fortran version 6 in
Windows still cannot find the source code for a divide-by-zero, or log
or exponent of a negative number runtime error. It's extremely
aggravating when one is developing numerical method programs for
nonlinear PDEs. When it was DEC Visual Fortran, DEC used to blame
Windows for that. Does anyone know if they also have the same problem
in Linux?
Don Baker
darcher8987@my-deja.com wrote:
>
> Hi.
>
> I'm doing numerical (floating point) computation, and I'm considering
> building an alpha cluster, either from Compaq or from a third party such
> as Microway. I'd like to run linux rather than Tru64 Unix, but I hear
> that the Tru64 compilers optimize better. I've also heard that Compaq
> sells compilers for Linux. True? Does anyone have any experience with
> these?
>
> Thanks!
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: DEC compilers available for Linux?
2000-09-24 4:00 ` Don Baker
@ 2000-09-24 4:00 ` Rob Komar
2000-09-26 4:00 ` Don Baker
2000-10-17 4:00 ` jdonsbach
2000-09-24 4:00 ` Serguei Patchkovskii
1 sibling, 2 replies; 21+ messages in thread
From: Rob Komar @ 2000-09-24 4:00 UTC (permalink / raw)
Don Baker <don.baker@aquarien.com> wrote:
> Yes, Compaq sells Fortran compilers, but do they sell a good debugger
> to go with them? The last I heard, Compaq Visual Fortran version 6 in
> Windows still cannot find the source code for a divide-by-zero, or log
> or exponent of a negative number runtime error. It's extremely
> aggravating when one is developing numerical method programs for
> nonlinear PDEs. When it was DEC Visual Fortran, DEC used to blame
> Windows for that. Does anyone know if they also have the same problem
> in Linux?
> Don Baker
We do. The problem is that some FPU (floating-point unit) operations take
a long time. To save some time, other kinds of instructions that don't
depend on the outcome of the FP operation are often processed by the CPU
while the FPU is working. If a FPU error occurs, the program counter
can have moved on by many instructions by the time the signal from the
hardware interrupt from the FPU is recognized by the program. To get
around this on X86 machines, an FWAIT instruction needs to be inserted
after each floating-point operation to make the CPU wait for the FPU to
finish before going on to the next instruction. As far as I know, the
gcc compilers don't do this. Bill Metzenthen wrote some external code
to do this (see http://www.suburbia.net/~billm), but it works on the
assembler output from gcc, so it requires a few extra steps to produce
an executable (ie. it's a bit of a pain).
I've never used Compaq Visual Fortran, but it's possible that it can
do this. I'd look in the documentation for a description of a switch
that adds FWAIT instructions to the code (assuming your using an X86
machine and not an Alpha). I'd also compile the code with no optimization
at all to keep instruction re-ordering to a minimum.
Cheers,
Rob Komar
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: DEC compilers available for Linux?
2000-09-24 4:00 ` Don Baker
2000-09-24 4:00 ` Rob Komar
@ 2000-09-24 4:00 ` Serguei Patchkovskii
1 sibling, 0 replies; 21+ messages in thread
From: Serguei Patchkovskii @ 2000-09-24 4:00 UTC (permalink / raw)
Don Baker (don.baker@aquarien.com) wrote:
: nonlinear PDEs. When it was DEC Visual Fortran, DEC used to blame
: Windows for that. Does anyone know if they also have the same problem
: in Linux?
No, there is no such problem in any of the unix-hosted Compaq compilers.
You can trap on division by zero, floating overflow, floating underflow,
or floating point domain errors. Or, depending on your requirements, you
can continue, substituting Inf, zero, or Nan as appropriate.
/Serge.P
---
Home page: http://www.cobalt.chem.ucalgary.ca/ps/
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: DEC compilers available for Linux?
2000-09-19 4:00 ` RL Griswold
@ 2000-09-26 1:20 ` ttk
0 siblings, 0 replies; 21+ messages in thread
From: ttk @ 2000-09-26 1:20 UTC (permalink / raw)
I thought this might be of interest to some in this newsgroup,
since you were tossing around sizeof-reporting code:
http://www.andansbutt.org/ttk/stdtypes/stdtypes101.tar
It's an application that runs on your host system and generates
an "stdtypes.h" file that defines a bunch of known-sized types
and other potentially useful system-dependent information. I use
it quite a lot to generate platform-independent code more easily.
Adding it to an application distribution can be as easy as
adding "stdtypes.h" to its Makefile's "all" rule, and then adding
a rule:
stdtypes.h: stdtypes.c
$(CC) -o stdtypes stdtypes.c $(LIB)
./stdtypes
(add whatever trimming your Makefile needs, of course)
-- TTK
--
"Live and Learn; Die and Learn Faster"
(motto of the Lynbrook Historical Simulations club)
Technical and RKBA documents at: http://larva.flyingcroc.net/~ttk/
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: DEC compilers available for Linux?
2000-09-24 4:00 ` Rob Komar
@ 2000-09-26 4:00 ` Don Baker
2000-09-26 4:00 ` Serguei Patchkovskii
2000-10-17 4:00 ` jdonsbach
1 sibling, 1 reply; 21+ messages in thread
From: Don Baker @ 2000-09-26 4:00 UTC (permalink / raw)
Thanks, but it is an Alpha machine, and much to my regret I bought the
pc164lx motherboard machine that does not host unix. You can set all
the flags you want in DVF 5.0d, and set the mode to full debug with no
optimization; it still can't find it's way back to the source code from
many runtime errors, including at least one file read error. I have
SuSe Alpha linux 6.4, but haven't had time to install it yet.
Don Baker
Rob Komar wrote:
>
> Don Baker <don.baker@aquarien.com> wrote:
> > Yes, Compaq sells Fortran compilers, but do they sell a good debugger
> > to go with them? The last I heard, Compaq Visual Fortran version 6 in
> > Windows still cannot find the source code for a divide-by-zero, or log
> > or exponent of a negative number runtime error. It's extremely
> > aggravating when one is developing numerical method programs for
> > nonlinear PDEs. When it was DEC Visual Fortran, DEC used to blame
> > Windows for that. Does anyone know if they also have the same problem
> > in Linux?
>
> > Don Baker
>
> We do. The problem is that some FPU (floating-point unit) operations take
> a long time. To save some time, other kinds of instructions that don't
> depend on the outcome of the FP operation are often processed by the CPU
> while the FPU is working. If a FPU error occurs, the program counter
> can have moved on by many instructions by the time the signal from the
> hardware interrupt from the FPU is recognized by the program. To get
> around this on X86 machines, an FWAIT instruction needs to be inserted
> after each floating-point operation to make the CPU wait for the FPU to
> finish before going on to the next instruction. As far as I know, the
> gcc compilers don't do this. Bill Metzenthen wrote some external code
> to do this (see http://www.suburbia.net/~billm), but it works on the
> assembler output from gcc, so it requires a few extra steps to produce
> an executable (ie. it's a bit of a pain).
>
> I've never used Compaq Visual Fortran, but it's possible that it can
> do this. I'd look in the documentation for a description of a switch
> that adds FWAIT instructions to the code (assuming your using an X86
> machine and not an Alpha). I'd also compile the code with no optimization
> at all to keep instruction re-ordering to a minimum.
>
> Cheers,
> Rob Komar
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: DEC compilers available for Linux?
2000-09-26 4:00 ` Don Baker
@ 2000-09-26 4:00 ` Serguei Patchkovskii
0 siblings, 0 replies; 21+ messages in thread
From: Serguei Patchkovskii @ 2000-09-26 4:00 UTC (permalink / raw)
Don Baker (don.baker@aquarien.com) wrote:
: Thanks, but it is an Alpha machine, and much to my regret I bought the
: pc164lx motherboard machine that does not host unix.
lx164 _is_ supported by Linux. As a small added bonus, you may be able to
get the latest version of the CPQ Fortran compiler for free - or, if you
do for-profit development, you at least will be able to try it for free.
/Serge.P
---
Home page: http://www.cobalt.chem.ucalgary.ca/ps/
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: DEC compilers available for Linux?
2000-09-24 4:00 ` Rob Komar
2000-09-26 4:00 ` Don Baker
@ 2000-10-17 4:00 ` jdonsbach
1 sibling, 0 replies; 21+ messages in thread
From: jdonsbach @ 2000-10-17 4:00 UTC (permalink / raw)
Most Alpha's (pre-EV6) work similarly in that floating point exceptions
are asynchronous. You need to compile with "/fpe:3"
or "/syncronous_exceptions" (Visual FORTRAN compiler options). This
will tell the compiler to put a TRAPB instruction after every floating
point instruction to flush the pipelines before the next instruction is
executed. This kills performance and you shouldn't do it in
a "production" program unless you have a very good reason for doing so
and understand why you are doing it.
Jeff D
In article <q85mq8.6mh.ln@robpc1.telus.net>,
Rob Komar <rkomar@telus.net> wrote:
> Don Baker <don.baker@aquarien.com> wrote:
> > Yes, Compaq sells Fortran compilers, but do they sell a good
debugger
> > to go with them? The last I heard, Compaq Visual Fortran version 6
in
> > Windows still cannot find the source code for a divide-by-zero, or
log
> > or exponent of a negative number runtime error. It's extremely
> > aggravating when one is developing numerical method programs for
> > nonlinear PDEs. When it was DEC Visual Fortran, DEC used to blame
> > Windows for that. Does anyone know if they also have the same
problem
> > in Linux?
>
> > Don Baker
>
> We do. The problem is that some FPU (floating-point unit) operations
take
> a long time. To save some time, other kinds of instructions that
don't
> depend on the outcome of the FP operation are often processed by the
CPU
> while the FPU is working. If a FPU error occurs, the program counter
> can have moved on by many instructions by the time the signal from the
> hardware interrupt from the FPU is recognized by the program. To get
> around this on X86 machines, an FWAIT instruction needs to be inserted
> after each floating-point operation to make the CPU wait for the FPU
to
> finish before going on to the next instruction. As far as I know, the
> gcc compilers don't do this. Bill Metzenthen wrote some external code
> to do this (see http://www.suburbia.net/~billm), but it works on the
> assembler output from gcc, so it requires a few extra steps to produce
> an executable (ie. it's a bit of a pain).
>
> I've never used Compaq Visual Fortran, but it's possible that it can
> do this. I'd look in the documentation for a description of a switch
> that adds FWAIT instructions to the code (assuming your using an X86
> machine and not an Alpha). I'd also compile the code with no
optimization
> at all to keep instruction re-ordering to a minimum.
>
> Cheers,
> Rob Komar
>
Sent via Deja.com http://www.deja.com/
Before you buy.
^ permalink raw reply [flat|nested] 21+ messages in thread
end of thread, other threads:[~2000-10-17 4:00 UTC | newest]
Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-09-18 4:00 DEC compilers available for Linux? darcher8987
2000-09-18 4:00 ` Hack
2000-09-19 4:00 ` RL Griswold
2000-09-26 1:20 ` ttk
2000-09-19 4:00 ` Robert Harley
2000-09-19 6:12 ` Takeyasu Wakabayashi
2000-09-19 4:00 ` Warner Bruns
2000-09-19 4:00 ` Takeyasu Wakabayashi
2000-09-19 4:00 ` Tony Hammitt
2000-09-19 6:15 ` Takeyasu Wakabayashi
2000-09-19 4:00 ` Nick Ntarmos
2000-09-19 4:00 ` Takeyasu Wakabayashi
2000-09-18 4:00 ` Greg Lindahl
2000-09-18 4:00 ` Serguei Patchkovskii
2000-09-19 0:42 ` W Bauske
2000-09-24 4:00 ` Don Baker
2000-09-24 4:00 ` Rob Komar
2000-09-26 4:00 ` Don Baker
2000-09-26 4:00 ` Serguei Patchkovskii
2000-10-17 4:00 ` jdonsbach
2000-09-24 4:00 ` Serguei Patchkovskii
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox