Using WinRiver Diab from CodeWarrior

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

Using WinRiver Diab from CodeWarrior

4,569 次查看
SVC1
Contributor I
I am trying to use WindRiver Diab compiler from within CodeWarrior IDE without success. I keep on getting errors such as:
 
{PATH}\MCF5282.h, line 42: warning (dcc:1504): arglist in declaration
{PATH}\MCF5282.h, line 42: error (dcc:1082): illegal storage class
{PATH}\MCF5282.h, line 42: error (dcc:1117): identifier __declspec not an argument
{PATH}\MCF5282.h, line 42: error (dcc:1633): parse error  near 'uint8'
 
{PATH}\MCF5282.h, line 43: warning (dcc:1504): arglist in declaration
{PATH}\MCF5282.h, line 43: error (dcc:1082): illegal storage class
{PATH}\MCF5282.h, line 43: error (dcc:1633): parse error  near 'uint8'
 
etc.
 
where PATH is "C:\program files\freescale\codewarrior for coldfire v7.0\coldfire_support\(headers)\MCF5282"
 
It seems like the statement:

#pragma define_section system ".system" far_absolute RW
 
is not being recognized by Diab.
 
Any help in using Diab from within CodeWarrior will be appreciated.
 
Thanks,
Simon
 
 
 
标签 (1)
0 项奖励
回复
1 回复

1,027 次查看
CrasyCat
Specialist III
Hello
 
CodeWarrior does not include any plug in to integrate Diab build tools.
That means you will not be able to use Diab Compiler within CodeWarrior.
 
Only solution you have here is to switch to External Build Linker in the Project "Target Settings" panel.
But here you need to have a make file and make utility available to build the application.
Also the CodeWarrior Front end is not 100% supported by Diab compiler.
You will have to port all the pragmas and __declspec to something that Diab compiler does understand.
Finally I would recommend you to use the library and register definition file provided by Diab to build an application with Diab compiler.
 
Anyway if you want to build an application with Diab Compiler  I would recommend you to use Diab IDE for that. This will be much easier than trying to do it from CodeWarrior.
Just my 2 cents on this one.
 
CrasyCat
0 项奖励
回复