kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #18367
Re: [MacOS] compiling with link-time optimization
Hi!
> - does not work on any Linux install
Well, it works for me, and decreses the file size by a few megs. (gcc 4.9.2)
I'd suggest integrating this as optional feature, like -DLTO=yes. There is a lot
of work being done on lto support, and will get better in the future.
It is annoying if you want to compile project with LTO (because, say, you're
working on a compiler and want to test new stuff), and the project can't easily
be compile that way. I know, since I'm doing this (with firefox) and I do need
to have some more wrappers to do it.
Here are the results:
krakonos@muskox ~ $ ls -all -h /home/krakonos/local-kicad-lto/bin/_*
-rwxr-xr-x 1 krakonos krakonos 4.4M May 23 10:18 /home/krakonos/local-kicad-lto/bin/_cvpcb.kiface
-rwxr-xr-x 1 krakonos krakonos 4.9M May 23 10:25 /home/krakonos/local-kicad-lto/bin/_eeschema.kiface
-rwxr-xr-x 1 krakonos krakonos 2.1M May 23 10:26 /home/krakonos/local-kicad-lto/bin/_gerbview.kiface
-rwxr-xr-x 1 krakonos krakonos 1.5M May 23 10:41 /home/krakonos/local-kicad-lto/bin/_pcb_calculator.kiface
-rwxr-xr-x 1 krakonos krakonos 11M May 23 10:39 /home/krakonos/local-kicad-lto/bin/_pcbnew.kiface
-rwxr-xr-x 1 krakonos krakonos 1.9M May 23 10:41 /home/krakonos/local-kicad-lto/bin/_pl_editor.kiface
krakonos@muskox ~ $ ls -all -h /home/krakonos/local/bin/_*
-rwxr-xr-x 1 krakonos krakonos 6.5M May 24 13:23 /home/krakonos/local/bin/_cvpcb.kiface
-rwxr-xr-x 1 krakonos krakonos 6.9M May 24 13:23 /home/krakonos/local/bin/_eeschema.kiface
-rwxr-xr-x 1 krakonos krakonos 2.9M May 24 13:21 /home/krakonos/local/bin/_gerbview.kiface
-rwxr-xr-x 1 krakonos krakonos 2.1M May 24 13:22 /home/krakonos/local/bin/_pcb_calculator.kiface
-rwxr-xr-x 1 krakonos krakonos 15M May 24 13:26 /home/krakonos/local/bin/_pcbnew.kiface
-rwxr-xr-x 1 krakonos krakonos 2.6M May 24 13:22 /home/krakonos/local/bin/_pl_editor.kiface
--
S pozdravem Ladislav Láska <laska@xxxxxxxxxxxxxxx>
Katedra Aplikované Matematiky, MFF UK tel.: +420 739 464 167
References