mwcceppc + gcc -> mwldeppc linker

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

mwcceppc + gcc -> mwldeppc linker

1,443 次查看
juhalaukkanen
Contributor III

I am trying to compiler several libraries with mwcceppc compiler and some with gcc. Then link them together with mwldeppc .

I ran into a problem that mwldeppc cannot recognize gcc debug data.

mwldeppc.exe: Invalid abbreviation code : 266l in section .debug_info of file

If I compile with gcc without including debug data linking is OK.

Is there any way to get support for gcc debug data?

Thanks.

标签 (2)
2 回复数

893 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello Juha Laukkanen,

CodeWarrior supports building project with Freescale Classic Toolchain or GCC Toolchain, please only select one for your project, don't mix them together.

I suggest you rebuild the library with mwcceppc compiler, and "EWL Libraries" are recommended to use, please refer to the section "22.3.3 How to Rebuild the EWL Libraries" in the attached document to rebuild your required library.

Thanks,

Yiping

0 项奖励

893 次查看
juhalaukkanen
Contributor III

OK yes I know I can build everything either with GCC Toolchain or MW Toolchain.

I was just wondering if it possible to mix them. Seems not really. Overcoming that linker restriction regarding debug data means lots of effort and work.

However you suggest preferring MW Toolchain rather than GCC Toolchain? I have understood that Freescale is going to mainly support GCC in the future so that it is unlikely that MW Toolchain gets C++11/14 and C11 support at all (now it only has C++03 and C99 support). Can you please explain why MW Toolchain should be preferred?

0 项奖励