Recent

Author Topic: build mode  (Read 2050 times)

draggon

  • New Member
  • *
  • Posts: 41
build mode
« on: February 16, 2018, 08:57:51 am »
I found out that there is almost no difference in application exe file size for different build modes. I would expect that Release mode provides significantly smaller size.
« Last Edit: February 16, 2018, 09:06:21 am by draggon »

Handoko

  • Hero Member
  • *****
  • Posts: 5122
  • My goal: build my own game engine using Lazarus
Re: build mode
« Reply #1 on: February 16, 2018, 09:29:37 am »
That's weird.

My tests on Lazarus 1.8.0 64-bit Linux Gtk2 show significant different in size:
- Default: 9.6 MB
- Release: 2.7 MB
- Debug: 5.6 MB

The tests performed on empty Lazarus project, all with its default settings.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8744
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: build mode
« Reply #2 on: February 16, 2018, 09:40:18 am »
Post what Project Options->Show Options gives for each build mode. Sometimes there are conflicting compiler options that prevent debug info stripping.

 

TinyPortal © 2005-2018