This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: `backtrace' implemented on MIPS?


On Monday, February 21, 2011 21:46:50 Pan ruochen wrote:
> $mips-linux-gcc -EL -O2 test_backtrace.c
> / # ./a.out 6
> backtrace() returned 1 addresses
> [0x7ff54868]
> 
> The results were totally different from thoes on x86.
> 
> $gcc test_backtrace.c
> $./a.out 6
> backtrace() returned 11 addresses

you didnt use options that were even close.  optimization will obviously make 
a huge difference.

i dont know enough about mips to know whether you need to further do things 
like -fno-omit-frame-pointer.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]