Re: Ask for help about fsl ppc toolchian issue "Illegal instruction"

2014-03-25 Thread Scott Wood
On Tue, 2014-03-25 at 13:31 +0800, wyang wrote: > > On 03/25/2014 10:17 AM, 许久成 wrote: > > > Hi All, > > > > > > We run into an issue when use e500mc toolchain g++ to compile c++ > > code for p2020 platform, the code as below: > > Hmm, p2020 should be e500 core rather than e500mc. Additiona

Re: Ask for help about fsl ppc toolchian issue "Illegal instruction"

2014-03-24 Thread wyang
On 03/25/2014 10:17 AM, 许久成 wrote: Hi All, We run into an issue when use e500mc toolchain g++ to compile c++ code for p2020 platform, the code as below: Hmm, p2020 should be e500 core rather than e500mc. Additionally, you should use gdb to debug it, and check which instruction is illegal.

Ask for help about fsl ppc toolchian issue "Illegal instruction"

2014-03-24 Thread 许久成
Hi All, We run into an issue when use e500mc toolchain g++ to compile c++ code for p2020 platform, the code as below: main.c #include using namespace std; int main(void) {cout << "asdfasdfasdfasdf"; return 0;} compile it with command "powerpc-fls-linux-g++ main.c" and the output