Re: [Dev-C++] how to optimize my project
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Scott S. <ssi...@sp...> - 2005-06-28 15:58:02
|
mei_hua chen wrote: >Hi: > Could you tell me detaily . How to " pass the -O2 flag to the compiler " . >Thank you very much . > >-----Original Message----- >From: Scott Simontis [mailto:ssi...@sp...] >Sent: Tuesday, June 28, 2005 1:30 PM >To: mei_hua chen >Subject: Re: [Dev-C++] how to optimize my project > >mei_hua chen wrote: > > > >>hi all : >> >> Can you help me to give me a way to optimize my project . My >>project have many *.cpp files. How to optimize then to make my .exe >>file to to fast. Thank you !! >> >> > >Tools->Compiler Options, then go to the settings tab. You can find >optimization settings there, or you can just pass the -O2 flag to the >compiler. > >-- >~~Scott~~ >ssi...@sp... > > > > Go to Tools->Compiler Options again. This time, select the compiler tab. Check the box "add the following commands when calling the compiler", and add -O2 to the text box below. Or, if you want to optimize only your current project, go to Projet->Project Options, and select the parameters tab. Under compiler, add -O2. I am not sure about this, but I don't think it really makes a difference if you put the -O2 under Compiler or C++ Compiler in project options. -- ~~Scott~~ ssi...@sp... |