pragma suooprt in diab

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

pragma suooprt in diab

3,211 Views
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

Labels (1)
0 Kudos
3 Replies

448 Views
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 Kudos

448 Views
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 Kudos

448 Views
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 Kudos