News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Compiling speed

Started by post from old forum, September 13, 2004, 09:30:41 PM

Previous topic - Next topic

post from old forum

Is there a way to improve compiling
speed ???
Tried to compile a program on a
P2 400 / 128 Mb but that it is not
nice to work with .
Looked a lot at the line :
Building ProjDefs. Tag.
Tried the free Borland compiler on
the same machine and it compiles a
lot faster !!

Peter (PK4BCX2)

post from old forum

Go to menu and then select the source tab. There is an option for Browse Information there. Either untick that to disable all browse information, or change the radiobox to Functions Only (which builds a lot faster). Those options are what the building projdefs.tag stuff is.
I find that having Functions Only is nice and fast but having the full browse information makes the additional step quite slow, much the same problem you are having I guess.

Also adding #define WIN32_LEAN_AND_MEAN before you include windows.h increases compile speed.

shelded

post from old forum

That should have been "go to menu tools options and then select". I put square braces around them before and the forum cut them out. Oops.

shelded

post from old forum

Thanks I will try it !
But #define WIN32_LEAN_AND_MEAN gives me an
error :
Unresolved external symbol '_ShellExecute'
I don't know why .

Thanks ,
Peter

post from old forum

WIN32_LEAN_AND_MEAN stops a whole load of mostly unused headers being included with the main windows.h. It also stops shellapi.h being included as it's not used most of the time. ShellExecute is declared in there.
Just add #include <shellapi.h> to your program and it will be okay.

shelded

post from old forum

Thanks again !!!
It compiles now real fast .

Peter.