Codewarrior IDE compiler

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

Codewarrior IDE compiler

Jump to solution
3,893 Views
sojomachu
Contributor I

Hi,

 

I'm using CodeWarrior(TM) Development Studio for Power Architecture(TM) Processors V8.8, Codewarrior IDE version 5.9.0.

 

The issue I'm facing is, when I make or build up to date a project, all the files in the project gets compiled irrespective of whether it is modified or not. It would be really helpful to know whether there is any mechanism, where in, only those files which are modified gets compiled. 

 

I have checked 'Use modification date caching' checkbox, in Build Extras of Target settings in <Target Name > settings . Still the result is the same. 

Labels (1)
0 Kudos
1 Solution
1,163 Views
J2MEJediMaster
Specialist I

Version control software is used to manage software projects. If you're checking your files in and out of a repository daily, you are probably using version control. That stuff tends to touch every file and make it look like it was updated.

 

Something has gone wrong with how the IDE tracks file modifications, and all of the usual tricks have failed. The only thing I can think of to try at this point is build the project over from scratch using the wizard, then add your source files into it.

 

---Tom

View solution in original post

0 Kudos
18 Replies
1,163 Views
admond
Contributor I

Hi Sojomachu:

     I try to help, but I am not sure whether I understand you or not.

 do you want to compile some files only. if so you can use Compile but build. I hope I catch you. Good luck.

 

        xidi

0 Kudos
1,163 Views
sojomachu
Contributor I

Hi Admond,

 

Thanks for the reply.. But it is not exactly wat I'm tryin to do. 

 

Each time i give a build command, i want just those which are modified to get compiled. Now what happens is that, when i give a build all the files in the project gets re-compiled even if those are not modified. Hope, that makes sense.

 

Thnx,

Sojo

0 Kudos
1,163 Views
admond
Contributor I

Hi sojo:

     now I think I understand what you really want. you can try this: Project > Bring Up To Date

this should be helpful. Good luck.

 

 

    Xidi

05.07.2009

0 Kudos
1,163 Views
sojomachu
Contributor I

Hi Xidi,

 

Thanks for your reply. I tried that. Still, all my files are getting compiled.

 

When i went through the Codewarrior User's guide, i found that only the modified files will be compiled. But the same is not happening here. All the files in my project are getting compiled even if i modify just one file. 

 

Thnx

-Sojo

0 Kudos
1,163 Views
admond
Contributor I

Hi Sojo:

         you can compile the files one by one or all, I think. maybe the way you want has not been included as to the manual. I double checked the manual, and it seems negative.

 

 

     Xidi

   05.07.2009

Message Edited by admond on 2009-05-07 02:15 PM
0 Kudos
1,163 Views
sojomachu
Contributor I

 Hi Xidi,

 

Once again thanks a lot for the response. 

 

From the user's guide, This is what the manual says. 

 

"Making Executable Files


Use the Make command to compile the newly-added, modified, and touched files in a
project, then link them into a binary file."

 

 

So, only the newly-added, modified and touched files should be compiled rite?... But it is not happening that way. Hope I'm clear.

 

 

Is it like, we should add some plugin or so, to use this feature. 

 

Thnx

-Sojo

 

0 Kudos
1,163 Views
admond
Contributor I

Hi Sojo:

      I think you can try the mark of Synchronize Modification Dates which are red ticks left to files in the project window, so you can mark the files you want to update by hand. good luck.

 

 

 

         Xidi

 

0 Kudos
1,163 Views
sojomachu
Contributor I

Hi Xidi,

 

Thanks for the response. 

 

When we modify a file, that red tick will come in automatically. Also, i tried marking one or two files. Still, all the files in my project are getting compiled. 

 

Thnx,

-Sojo

0 Kudos
1,163 Views
admond
Contributor I

Hi Sojo:

      I added the red tick on some file; when I pressed button of compile, I saw only the files with ticks compiled. it is certainly the case on my codewarrior which is for DSC. so I think yours may be modified on some perferences. I checked the IDE preference but found no choice having something to do with your situation. I will keep for it.

 

     Xidi

   05.08.2009

 

0 Kudos
1,163 Views
sojomachu
Contributor I

Thnx Xidi,

 

I checked my codewarrior installation and found all plugins added. So I'm not sure what to do. 

 

Thanks a lot for your support.

 

-Sojo

0 Kudos
1,164 Views
J2MEJediMaster
Specialist I

Version control software is used to manage software projects. If you're checking your files in and out of a repository daily, you are probably using version control. That stuff tends to touch every file and make it look like it was updated.

 

Something has gone wrong with how the IDE tracks file modifications, and all of the usual tricks have failed. The only thing I can think of to try at this point is build the project over from scratch using the wizard, then add your source files into it.

 

---Tom

0 Kudos
1,163 Views
sojomachu
Contributor I

Hi Tom,

 

 I did build the project over from scratch using the wizard and tyhen added my source files. This is working better. But, still even if one file is modified some other files also get compiled. Could this be because of some inter-dependency between these files.

 

Unlike the previous build where all files used to get compiled, now only a set of files get compiled when we modify some random file and re-build. 

 

Thnx,

-Sojo

0 Kudos
1,163 Views
J2MEJediMaster
Specialist I

If the file you modify is a header file, then every source file that makes use of it needs to be updated. For this reason, the CodeWarrior IDE keeps track of such dependencies and compiles every source file that references the altered header file. This ensures that every source file gets revised if, say, a critical data structure in the header file was changed. I'd check and see if the files that are being recompiled have some sort of dependency in the file you modified. If so, CodeWarrior is just doing its job.

 

---Tom

0 Kudos
1,163 Views
sojomachu
Contributor I

Hi Tom,

 

Thanks for the reponse. 

 

The file I modified is not a header file. Its a source file. Still some other files get compiled. The behaviour is not the same for all files. For some files, no other file is  compiled. But for some other files a set of different files get compiled alongwith. The number of files differ for differentsource files. Thats why I asked if it is some kind of a dependency. 

 

Thnx,

-Sojo

0 Kudos
1,163 Views
sojomachu
Contributor I

Hi Tom,

 

Thanks a lot for your reply. 

 

I'm trying out the same. There are some issues with my project settings. Still, from the initial build it looks like, things are working out. Will update you, once a thorough build is overand the output file is verified.

 

Once again a big thank you...... :smileyhappy:

 

Thnx,

-Sojo

0 Kudos
1,163 Views
J2MEJediMaster
Specialist I

Try the following (in order of pain magnitude):

 

1) Project > Synchronize Modification Dates.

 

2) a. Write down all of your project settings.

    b. Quit CodeWarrior.

    c. In your project folder, delete the folder yourProjectName_Data, where yourProjectName is the

       name of your CodeWarrior project.

    d. Restart CodeWarrior, and hopefully all will be well.

This option cleans out a lot of state information that the IDE relies on. This state info might have gotten corrupted and is source of your problem. The downside is that you might lose some of your project's settings, which is why you write them down.

 

3) If you are using source control, it might be touching the files so that they all appear to have been revised. I do not know of any workaround for this.

 

---Tom

 

0 Kudos
1,163 Views
sojomachu
Contributor I

Hi Tom,

 

Thanks for that response. 

 

I tried, steps 1 and 2. Still the issue persists. First time I make the project, all files get compiled and that is understood. But, next when i modify a single file and tried 'Bring Up To Date'. Still all my files are getting copiled.

 

I don't know the 3rd option. What is source control?. Can you please explain that. How do we know we are using source control?. And also, is there anyway in which we can disable the same. 

 

Thnx

-Sojo

0 Kudos
1,163 Views
sojomachu
Contributor I
Please help!!!
0 Kudos