Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: Sun Letter Revised Draft ( Wheres My Alpha! )
@ 1997-04-09 12:43 Uncle George
  0 siblings, 0 replies; 7+ messages in thread
From: Uncle George @ 1997-04-09 12:43 UTC (permalink / raw)


> In summary, Linux users prefer to license Java on Linux (SPARC or Intel) rather

I suppose I am being nit-picky, but where is the DEC/Alpha ( anyone
speaking for mips?) . I wudda have thought that dec would have objected
to NOT being included. Who knows, maybe there are no java nuts ( beans )
at dec.

-- 
Uncle George ( aka G. Baeslack )
http://www.voicenet.com/~gatgul

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Sun Letter Revised Draft ( Wheres My Alpha! )
       [not found] <334B8F08.2E88@voicenet.com>
@ 1997-04-09 14:45 ` Randy Chapman
  0 siblings, 0 replies; 7+ messages in thread
From: Randy Chapman @ 1997-04-09 14:45 UTC (permalink / raw)


> > In summary, Linux users prefer to license Java on Linux (SPARC or Intel) rather
> 
> I suppose I am being nit-picky, but where is the DEC/Alpha ( anyone
> speaking for mips?) . I wudda have thought that dec would have objected
> to NOT being included. Who knows, maybe there are no java nuts ( beans )
> at dec.

*Looks at the loaner alpha in his bedroom*  Yes, I think some people there
want it done.  And speaking of that, I need a little help with a problem
I'm having on that system....

Take the following program:

#include <stdio.h>
#include <math.h>
#include <signal.h>

void fpe_handler(int sig) {
	printf("GOT AN FPE!\n");
}

int main()
{
	double a, b, c;
	float d, e, f;

	signal(SIGFPE, fpe_handler);

	printf("about to divide 1.0 by 0.0\n");
	a = 1.0;
	b = 0.0;
	c = a/b;
	printf("result: %g\n", c);

	printf("about to assign HUGE_VAL to a float\n");
	/* whats the proper way to get this, anyhow? */
	f = HUGE_VAL;
	printf("about to print that float\n");
	printf("Inf is %g\n", f); 

	return 0;
}

On linux/x86 that works quite nicely:
about to divide 1.0 by 0.0
result: Inf
about to assign HUGE_VAL to a float
about to print that float
Inf is Inf     

On solaris/sparc that works quite nicely as well.

On osf/alpha with cc -ieee it works nicely as well.

On linux/alpha with gcc -ieee it doesn't work =(  This of course is the
platform that I need it on =/  Any ideas?

Thanks!
--randy

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Sun Letter Revised Draft ( Wheres My Alpha! )
@ 1997-04-09 16:10 Jim Paradis
  0 siblings, 0 replies; 7+ messages in thread
From: Jim Paradis @ 1997-04-09 16:10 UTC (permalink / raw)


Randy Chapman wrote:
> And speaking of that, I need a little help with a problem
> I'm having on that system....

The correct flag to use is "-mieee", not "-ieee".  When I tried
it with -mieee, the program worked correctly.

Speaking of that loaner system, how's JDK coming? 8-)

-- 
Jim Paradis   jrp@jrp.tiac.net  
http://www.tiac.net/users/jrp/index.html
"It's not procrastination, it's my new Just-In-Time Workload Management
System!"

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Sun Letter Revised Draft ( Wheres My Alpha! )
       [not found] <Pine.A32.3.95.970409110746.66090D-100000@argent.tkg.com>
@ 1997-04-09 16:15 ` Randy Chapman
  0 siblings, 0 replies; 7+ messages in thread
From: Randy Chapman @ 1997-04-09 16:15 UTC (permalink / raw)


Good question, I forgot to post the failure:
nova:~> gcc -ieee testieee.c -lm -lieee
nova:~> ./a.out
about to divide 1.0 by 0.0
GOT AN FPE!
result: 0
about to assign HUGE_VAL to a float
GOT AN FPE!
about to print that float
Inf is 0
nova:~>  

Basically, we are getting SIGFPE's... which will kill the program if I
don't catch them.  What I would like is either a way to get them not even
generated, or info on how to get the correct result and return it when
they are.

Thanks,
--randy

ps: I bcc'ed java-linux on this, but they shouldn't be kept in on this
conversation.

On Wed, 9 Apr 1997, Rob Mayoff wrote:

> On Wed, 9 Apr 1997, Randy Chapman wrote:
> 
> > On linux/alpha with gcc -ieee it doesn't work =(  This of course is the
> > platform that I need it on =/  Any ideas?
> 
> How, precisely, does it fail?
> 

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Sun Letter Revised Draft ( Wheres My Alpha! )
       [not found] <Pine.LNX.3.95.970409121229.521B-100000@shell.ncm.com>
@ 1997-04-09 16:24 ` Andreas Johansson
  0 siblings, 0 replies; 7+ messages in thread
From: Andreas Johansson @ 1997-04-09 16:24 UTC (permalink / raw)


On Wed, 9 Apr 1997, Randy Chapman wrote:
> Good question, I forgot to post the failure:
> nova:~> gcc -ieee testieee.c -lm -lieee
> nova:~> ./a.out
> about to divide 1.0 by 0.0
> GOT AN FPE!
> result: 0
> about to assign HUGE_VAL to a float
> GOT AN FPE!
> about to print that float
> Inf is 0
> nova:~>  
> 
> Basically, we are getting SIGFPE's... which will kill the program if I
> don't catch them.  What I would like is either a way to get them not even
> generated, or info on how to get the correct result and return it when
> they are.
> 
> Thanks,
> --randy

Someone recently wrote this, but since it seems you haven't seen it, the
option to gcc is -mieee, not -ieee. This atleast makes some difference to
your program in the HUGE_VAL assignment:

ajo@nova ~ >gcc -mieee testieee.c -lm -lieee
ajo@nova ~ >a.out
about to divide 1.0 by 0.0
GOT AN FPE!
result: 0
about to assign HUGE_VAL to a float
about to print that float
Inf is Inf

--

<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
: E-mail: ajo@wopr.campus.luth.se                                       :
: S-mail: Andreas Johansson, Karhusvagen 5  6:618, 977 54 Lulea, SWEDEN :
:     Have you had your dose of 261.62 BogoMIPS today? - Run Alpha!     :
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Sun Letter Revised Draft ( Wheres My Alpha! )
@ 1997-04-09 16:31 Jim Paradis
  0 siblings, 0 replies; 7+ messages in thread
From: Jim Paradis @ 1997-04-09 16:31 UTC (permalink / raw)


Randy Chapman wrote:
> 
> Good question, I forgot to post the failure:
> nova:~> gcc -ieee testieee.c -lm -lieee
> nova:~> ./a.out
> about to divide 1.0 by 0.0
> GOT AN FPE!
> result: 0
> about to assign HUGE_VAL to a float
> GOT AN FPE!
> about to print that float
> Inf is 0
> nova:~>

Well, here's what I did:

[paradis@piston paradis]$ gcc -mieee testieee.c   
[paradis@piston paradis]$ ./a.out
about to divide 1.0 by 0.0
GOT AN FPE!
result: 0
about to assign HUGE_VAL to a float
about to print that float
Inf is Inf
[paradis@piston paradis]$ 

-- 
Jim Paradis   jrp@jrp.tiac.net  
http://www.tiac.net/users/jrp/index.html
"It's not procrastination, it's my new Just-In-Time Workload Management
System!"

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Sun Letter Revised Draft ( Wheres My Alpha! )
@ 1997-04-09 17:52 Randy Chapman
  0 siblings, 0 replies; 7+ messages in thread
From: Randy Chapman @ 1997-04-09 17:52 UTC (permalink / raw)


In article <334BC47B.5FF1D1D4@jrp.tiac.net> you wrote:
: Well, here's what I did:
: 
: [paradis@piston paradis]$ gcc -mieee testieee.c   
: [paradis@piston paradis]$ ./a.out
: about to divide 1.0 by 0.0
: GOT AN FPE!

Unfortunately, you're still getting an FPE here.  However, I 
think I can work around this one, it is the other that was more painful.

thanks,
--randy

: result: 0
: about to assign HUGE_VAL to a float
: about to print that float
: Inf is Inf
: [paradis@piston paradis]$ 
: 
: 
: -- 
: Jim Paradis   jrp@jrp.tiac.net  
: http://www.tiac.net/users/jrp/index.html
: "It's not procrastination, it's my new Just-In-Time Workload Management
: System!"
: 
: --
: To unsubscribe: send e-mail to axp-list-request@redhat.com with
: 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
: 

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1997-04-09 17:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-09 17:52 Sun Letter Revised Draft ( Wheres My Alpha! ) Randy Chapman
  -- strict thread matches above, loose matches on Subject: below --
1997-04-09 16:31 Jim Paradis
     [not found] <Pine.LNX.3.95.970409121229.521B-100000@shell.ncm.com>
1997-04-09 16:24 ` Andreas Johansson
     [not found] <Pine.A32.3.95.970409110746.66090D-100000@argent.tkg.com>
1997-04-09 16:15 ` Randy Chapman
1997-04-09 16:10 Jim Paradis
     [not found] <334B8F08.2E88@voicenet.com>
1997-04-09 14:45 ` Randy Chapman
1997-04-09 12:43 Uncle George

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox