pragma suooprt in diab

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

pragma suooprt in diab

3,600 次查看
vaas
Contributor I
HI,
      I tried to compile the following .cpp files from diab.

/*.....test1.cpp...........*/

#pragma section DATA ".first" ".first"
int raj2;

#pragma section DATA ".second" ".second"
extern int var1;
int ar2;

int testmain()
{
        int a,b,c;
        return a;

 

}

/****************************************************/

in the above code i want variable ar2 to go to section second, but it
is going to section first.

can anyone make this clear

标签 (1)
0 项奖励
回复
3 回复数

837 次查看
CrasyCat
Specialist III
Hello
 
- Which CPU are you targeting (MPC5xx, Coldfire, ..)
- Which version of CodeWarrior are you using?
  To retrieve that info:
    - Start CodeWarrior
    - Select Help -> About Freescale CodeWarrior
    - Click on "Install Products"
    - CodeWarrior version used is displayed on top in the Installed Products dialog.
 
CrasyCat
0 项奖励
回复

837 次查看
vaas
Contributor I
Hi,
      thanks for the reply
 
      I am targeting for MPC5200.
 
     I am using diab 5.3.1.0 compiler from windriver ...
0 项奖励
回复

837 次查看
CrasyCat
Specialist III
Hello
 
I am not sure you will get assistance on that one on the CodeWarrior Forum.
This Forum is for questions around development with CodeWarrior development tool chain.
 
If you need support for DIAB compiler it is probably better to ask support from WindRiver directly.
 
CrasyCat
0 项奖励
回复