Hi.
I have the same piece of code which crashes when it’s executed on PPC but
not on X86. It seems like it is when a function is returning but I’m not
sure.
For X86 it is built like:
qcc -gdwarf-2 -I … -fPIC -c myprogram.cpp
qcc myprogram.o -lang-c++ -o myprogram
For PPC it is built like:
qcc -Vgcc_ntoppcbe -gdwarf-2 -I … -c myprogram.cpp
qcc -Vgcc_ntoppcbe myprogram.o -lang-c++ -o myprogram
Does anyone know why?
Regards
/Peter
“Peter Söderman” <peter.soderman@wavium.se> wrote in message
news:akie96$45s$1@inn.qnx.com…
Hi.
I have the same piece of code which crashes when it’s executed on PPC but
not on X86. It seems like it is when a function is returning but I’m not
sure.
For X86 it is built like:
qcc -gdwarf-2 -I … -fPIC -c myprogram.cpp
qcc myprogram.o -lang-c++ -o myprogram
For PPC it is built like:
qcc -Vgcc_ntoppcbe -gdwarf-2 -I … -c myprogram.cpp
qcc -Vgcc_ntoppcbe myprogram.o -lang-c++ -o myprogram
Does anyone know why?
Maybe if you can post offending code, it would be easier to
help you. Issue is most probably code that is endian sensitive.
Or sometime a bug in a software will go unnoticed on x86
and show up on other platform.
Regards
/Peter