[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[microblaze-uclinux] Compiler hangs
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/