Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
gcc on minix-386 doesn't optimize?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
torvalds  
View profile  
(3 users)  More options Mar 29 1991, 10:19 am
Newsgroups: comp.os.minix
From: torva...@cc.helsinki.fi
Date: 29 Mar 91 15:19:30 GMT
Local: Fri, Mar 29 1991 10:19 am
Subject: gcc on minix-386 doesn't optimize?
Hello everybody,
  I've had minix for a week now, and have upgraded to 386-minix (nice),
and duly downloaded gcc for minix. Yes, it works - but ... optimizing
isn't working, giving an error message of "floating point stack
exceeded" or something. Is this normal? I had problems with the crcs, so
I'm not actually sure I've gotten it right (pretty sure though), but I'm
somewhat surprised that gcc would use floating point in normal
optimizations when the program under compilation certainly doesn't.

  I've downloaded the sources (2.9Mb for just gcc, not gas etc), but due
to a rather small HD I've been unable to untar them completely, so I
cannot recompile or anything. I could get one of the floating point
packages floating around, if that is the problem, but my understanding
is that the current binary cannot take advantage of them anyway. Could
somebody please tell me what's the story behind the gcc floating point?

                advTHANKSance,  Linus Torvalds
                                torva...@cc.helsinki.fi

PS. No it's not a big problem, even without optimization I get around
7000 dhrystones, I'm just wondering. And yes - I'll get a bigger HD as
soon as my somewhat strained economy can make it 8-).


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Cornett  
View profile  
(2 users)  More options Mar 31 1991, 2:55 am
Newsgroups: comp.os.minix
From: pa...@polari.UUCP (Paul Cornett)
Date: 31 Mar 91 07:55:44 GMT
Local: Sun, Mar 31 1991 2:55 am
Subject: Re: gcc on minix-386 doesn't optimize?

In article <1991Mar29.151930.5...@cc.helsinki.fi>, torva...@cc.helsinki.fi writes:
> Hello everybody,
>   I've had minix for a week now, and have upgraded to 386-minix (nice),
> and duly downloaded gcc for minix. Yes, it works - but ... optimizing
> isn't working, giving an error message of "floating point stack
> exceeded" or something. Is this normal? I had problems with the crcs, so

I had the same problem, and after a while I found that coprocessor
instructions were not causing an exception even though I don't have a
387.  Apparently the bios (which minix uses to enter protected mode) on
my machine doesn't set the EM bit of CR0 to indicate the lack of a
coprocessor, so any fp instructions just get ignored.  Since the minix
patches for gcc depend on SIGFPE being generated when an fp instruction
is encountered, things get screwed up pretty quickly.  I fixed the
problem by adding a quick hack to klib386.x; probably it would be better
to add code which determines whether or not a coprocessor is present,
but that was too much trouble, and this worked for me:

*** klib386.x~  Wed Mar 13 02:52:32 1991
--- klib386.x   Thu Mar 21 14:22:43 1991
***************
*** 417,422 ****
--- 417,423 ----

        mov     eax,cr0
        or      eax,#CR0_PG
+       or      eax,#4          | turn on fp coprocessor emulation
        mov     cr0,eax

        pop     edi

in case that gets mangled, here it is uuencoded:

begin 644 klib386.x.cd
M*BHJ(&ML:6(S.#8N>'X)5V5D($UA<B Q,R P,CHU,CHS,B Q.3DQ"BTM+2!K
M;&EB,S@V+G@)5&AU($UA<B R,2 Q-#HR,CHT,R Q.3DQ"BHJ*BHJ*BHJ*BHJ
M*BHJ*@HJ*BH@-#$W+#0R,B J*BHJ"BTM+2 T,3<L-#(S("TM+2T*(" *(" )
M;6]V"65A>"QC<C *(" );W()96%X+"-#4C!?4$<**R );W()96%X+",T"0E\
M('1U<FX@;VX@9G @8V]P<F]C97-S;W(@96UU;&%T:6]N"B @"6UO=@EC<C L
296%X"B @"B @"7!O< EE9&D*

end

---------
Paul Cornett
pa...@polari.uucp  or  ...!uw-beaver!sumax!polari!paulc


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Minux Downloads" by M E Leypold
M E Leypold  
View profile  
(1 user)  More options Sep 9 2006, 2:28 pm
Newsgroups: comp.os.minix
From: M E Leypold <development-2006-8ecbb5cc8aREMOVET...@ANDTHATm-e-leypold.de>
Date: 09 Sep 2006 20:28:40 +0200
Local: Sat, Sep 9 2006 2:28 pm
Subject: Re: Minux Downloads

Arnold Schwarzenegger <governa...@california.gov> writes:
> Is there a list of functional MINUX download sites that someone can
> provide ?

> Thanks.

Arnold,

A big bad boy like you doesn't use MINUX. I recommend MAXUX for someone
BIG like you.

Have you tried googling for the OS you're looking for? Try using the
name as spelled in the name of the news group. And I don't mean
'bonoism'.

Actually I wonder why you crossposted to alt.religion.dake-bonoism, misc.misc?

Regards -- Markus


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google