Installing package increases lazarus.exe size lazarus / 13-General ---------------------------------------------------------------------- sapper · 2013-04-25 01:58 I downloaded lazarus-1.0.8-fpc-2.6.2win32.exe and installed Lazarus. I then installed the TOpenGLcontext component and pressed "Save and rebuild". This installed the component but now lazarus.exe is about 168 MB but used to be about 14 MB. I saw some tips about reducing exe size for user programs. Do these settings also need to be used when rebuilding Lazarus itself? ---------------------------------------------------------------------- otorres · 2013-04-25 03:23 168 MB is too low space for the actual pc, i think this is unnecessary. Regards. ---------------------------------------------------------------------- itmitica · 2013-04-25 04:07 Tools -> Configure "Build Lazarus" Profile to build: Optimized IDE Build -- Mitică ---------------------------------------------------------------------- Leledumbo · 2013-04-25 07:27 QuoteDo these settings also need to be used when rebuilding Lazarus itself.Yes (Lazarus is just another LCL application, you can say it's built on top of itself similar like FPC is built with itself) ---------------------------------------------------------------------- itmitica · 2013-04-25 08:29 Quote from: itmitica on April 25, 2013, 06:07:19 amTools -> Configure "Build Lazarus" Profile to build: Optimized IDE Build -- Mitică I forgot to add the Options I use: -O2 -g- -Xs Here's a screenshot: http://photobase.co/photo/a5uza5uvy9.jpg -- Mitică ---------------------------------------------------------------------- JuhaManninen · 2013-04-25 09:18 Using FPC 2.6.2: On 64-bit Linux I get 79 MB for a debug IDE. A 32-bit version would be smaller. This is still less than half of your 168 MB. Optimized IDE is 22 MB here. It opens substantially faster than the debug version (naturally). ---------------------------------------------------------------------- BigChimp · 2013-04-25 09:56 Quote from: itmitica on April 25, 2013, 10:29:03 amI forgot to add the Options I use: -O2 -g- -Xs Curious - do you see any improvement if using -Xs? Using -g- should not generatede debug info in the first place - does the strip step remove more info? (If so, I might adjust my own build tools ) ---------------------------------------------------------------------- itmitica · 2013-04-25 10:04 Well, look for yourself: http://photobase.co/photo/e9e3a2ama8.jpg This is on WinXP SP3 32bit, standard Lazarus 1.0.8. -- Mitică ---------------------------------------------------------------------- BigChimp · 2013-04-25 10:48 Nice picture, bit useless without comparison though - but your answer is yes, I suppose.... ---------------------------------------------------------------------- marcov · 2013-04-25 10:51 Quote from: BigChimp on April 25, 2013, 11:56:17 am Curious - do you see any improvement if using -Xs? Using -g- should not generatede debug info f....or newly compiled units. (FPC and already compiled components and lazarus parts excluded) Quote in the first place - does the strip step remove more info? (If so, I might adjust my own build tools ) Probably the already-compiled-with-debuginfo ones. For the people that want to get deeper into this, that's what MAP files are for. ---------------------------------------------------------------------- BigChimp · 2013-04-25 11:15 Ok, thanks. ---------------------------------------------------------------------- sapper · 2013-04-26 01:42 Quote from: itmitica on April 25, 2013, 10:29:03 amQuote from: itmitica on April 25, 2013, 06:07:19 amTools -> Configure "Build Lazarus" Profile to build: Optimized IDE Build -- Mitică I forgot to add the Options I use: -O2 -g- -Xs Here's a screenshot: http://photobase.co/photo/a5uza5uvy9.jpg -- Mitică Thanks. exe size is now about 17MB with some more packages installed. When I selected Optimized IDE the options -O2 -g- -Xs were automatically set.