News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

CC's parsing time problem

Started by ollydbg, November 11, 2009, 11:17:21 AM

Previous topic - Next topic

ollydbg

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...
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.

blueshake

QuoteIn 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.
QuoteParsing 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?

ollydbg

#2
Sorry, it's a typo, it is 2 minutes, not 20 minutes.  :(

I still can't find the reason. I will exam it tomorrow.
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.

ollydbg

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.