Author Topic: CC's parsing time problem  (Read 3929 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6079
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
CC's parsing time problem
« on: November 11, 2009, 11:17:21 am »
I found a strange problem. I have two computers:

PC A : Windows XP EN desktop PC
PC B : Windows Vista Basic EN Notepad PC

I just build the C::B myself in PC B.
So, I test the output files in both A and B.

In PC A, parsing the CB's source only takes 2+ minutes, about 1510 files and 84000+ tokens.
In PC B, parsing the CB's source takes 2minitus+ ,and only 1100+ files and 6000+tokens.

This is quite strange, because I just copy the same executable file. :o

I suspect there's something wrong in Vista...
« Last Edit: November 12, 2009, 04:14:22 pm by ollydbg »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline blueshake

  • Regular
  • ***
  • Posts: 458
Re: CC's parsing time problem
« Reply #1 on: November 11, 2009, 11:35:20 am »
Quote
In PC A, parsing the CB's source only takes 20+ minitus, about 1510 files and 84000+ tokens.

Are you sure it is 20+ minitus? :shock:
here is my output.
Quote
Parsing stage done (1505 total parsed files, 83995 tokens in 0 minute(s), 22.344 seconds).
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6079
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: CC's parsing time problem
« Reply #2 on: November 11, 2009, 04:33:11 pm »
Sorry, it's a typo, it is 2 minutes, not 20 minutes.  :(

I still can't find the reason. I will exam it tomorrow.
« Last Edit: November 12, 2009, 04:13:51 pm by ollydbg »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6079
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: CC's parsing time problem
« Reply #3 on: November 12, 2009, 04:18:35 pm »
I have solved my problem today.

I just rebuild the wxWidgets library and CB code in the same TDM-MinGW GCC 4.4.1. and it works OK in both XP and Vista.

So, it seems the reason of my problem is that: the WX library and CB were built from different version of MinGW, they were not compatible.

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.