[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [microblaze-uclinux] Compiler hangs



Hello

Xilinx is aware of the problems with 64-bit arithmetic in general  in mb-gcc 
2.95.  Here is the answer to the webcase I opened:

"I was able to reproduce your problem under the 6.3i software. However, our 
current software release uses a newer version of gcc, 3.4.1, which does not 
exhibit this problem. The older software had some problems with 64-bit 
arithmetic in general, which was one of the issues resolved by the move to 
the newer gcc version. Unfortunately, other that not using optimization in 
your code, there isn’t a workaround that we can provide you. If possible, 
you may want to upgrade to the new version of EDK."

Were there any plans for uClinux  to move to mb-gcc 3.4.1?  I have the 
source for mb-gcc 3.4.1 taken from the Xilinx web site but before I attempt 
to compile them (not simple I was told) I wanted to check.

Thank You

  Patrick Robin


<h3><center><a href="http://themail.com/ref.htm?ref=917508";><font 
style='text-decoration:none'>Get paid for using free e-mail @ 
TheMail.com</a></font></center><h3>



>From: "Patrick Robin" <circaeng@hotmail.com>
>Reply-To: microblaze-uclinux@itee.uq.edu.au
>To: microblaze-uclinux@itee.uq.edu.au
>Subject: [microblaze-uclinux] Compiler hangs Date: Tue, 02 Aug 2005 
>22:41:58 +0000
>
>Hello,
>
>mb-gcc hangs when compiling the simple code bellow with optimization turned 
>on. Seems to be related to 64 bit variables. I open a webcase with Xilinx 
>but since uClinux uses "unsigned long long" variables and -01 optimization, 
>I was wondering if anyone else saw this problem. In a larger program, it 
>seems to be possible to make the code compile by juggling things around but 
>the resulting code is unstable and hangs. THis doesn't happen with 
>optimization turned off.
>
>Patrick Robin
>
>#include "xbasic_types.h"
>
>typedef struct {
>
>Xuint32 N;
>
>} FGen;
>
>//==================================================================
>void FGen_runSingle(FGen *fg) {
>
>unsigned long long z64; //unsigned 64 bits
>z64=((z64<<29))/48828125;
>fg->N=(Xuint32)z64;
>}
>
>
>
><h3><center><a href="http://themail.com/ref.htm?ref=917508";><font 
>style='text-decoration:none'>Get paid for using free e-mail @ 
>TheMail.com</a></font></center><h3>
>
>
>___________________________
>microblaze-uclinux mailing list
>microblaze-uclinux@itee.uq.edu.au
>Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
>Mailing List Archive : 
>http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/