kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #18358
Re: [MacOS] compiling with link-time optimization
Hi,
built your branch on OS X.
Good thing is that build did work for me.
I just quickly fired up pcbnew and loaded an existing board… seems to work.
But, it doesn’t seem to have a real effect on code size (first one is my current working version, second one your branch):
bstegmaier$ ls -al /Applications/KiCad-5648/kicad.app/Contents/PlugIns/
total 58904
drwxr-xr-x 8 bstegmaier admin 272 9 Mai 14:59 .
drwxr-xr-x 9 bstegmaier admin 306 9 Mai 14:59 ..
-rwxr-xr-x 1 bstegmaier admin 5683560 9 Mai 14:59 _cvpcb.kiface
-rwxr-xr-x 1 bstegmaier admin 5652288 9 Mai 14:59 _eeschema.kiface
-rwxr-xr-x 1 bstegmaier admin 2105068 9 Mai 14:59 _gerbview.kiface
-rwxr-xr-x 1 bstegmaier admin 1797432 9 Mai 14:59 _pcb_calculator.kiface
-rwxr-xr-x 1 bstegmaier admin 12970696 9 Mai 14:59 _pcbnew.kiface
-rwxr-xr-x 1 bstegmaier admin 1944576 9 Mai 14:59 _pl_editor.kiface
bstegmaier$ ls -al bin/kicad.app/Contents/PlugIns/
total 57128
drwxr-xr-x 8 bstegmaier staff 272 23 Mai 18:13 .
drwxr-xr-x 9 bstegmaier staff 306 23 Mai 18:13 ..
-rwxr-xr-x 1 bstegmaier staff 5215564 23 Mai 18:13 _cvpcb.kiface
-rwxr-xr-x 1 bstegmaier staff 5646432 23 Mai 18:13 _eeschema.kiface
-rwxr-xr-x 1 bstegmaier staff 2103556 23 Mai 18:13 _gerbview.kiface
-rwxr-xr-x 1 bstegmaier staff 1758640 23 Mai 18:13 _pcb_calculator.kiface
-rwxr-xr-x 1 bstegmaier staff 12570984 23 Mai 18:13 _pcbnew.kiface
-rwxr-xr-x 1 bstegmaier staff 1938952 23 Mai 18:13 _pl_editor.kiface
The comparison isn’t accurate in any way… both binaries do use different KiCad revisions and the build of your branch is done without github plugin, my working version is with github plugin.
Nevertheless… I think you would have expected a quite significant difference?
Regards,
Bernhard
> On 22.05.2015, at 16:51, Simon Richter <Simon.Richter@xxxxxxxxxx> wrote:
>
> Hi,
>
> I've submitted a branch for inclusion at
>
> https://code.launchpad.net/~sjr/kicad/lto
>
> that seeks to use link-time optimization when possible.
>
> We've already established that this is broken on MSYS, so I'm going to
> disable it there, while it does some good on Linux. This leaves MacOS.
>
> Could anyone try building a Release configuration both with and without
> this branch, and check that a) the build still works, and b) we get a
> significant reduction in size?
>
> Thanks,
> Simon
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
Follow ups
References