Recent

Author Topic: WPO and SmartLinking whole RTL and used dependencies  (Read 1933 times)

therifler

  • Newbie
  • Posts: 1
WPO and SmartLinking whole RTL and used dependencies
« on: June 23, 2017, 09:41:46 pm »
Hi there,
I'd like to ask how to make whole program optimizations for RTL and all dependencies (I know it will take a lot of time to compile project this way). I figure out i have to copy rtl and dependencies (for specific platform and architecture) to other folder and include it in uses and includes path. But this is extremely uncomfortable...

Also, how to smartlink RTL and dependencies? Every time I tried it did not work. Application size did not change.

Please help ;)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: WPO and SmartLinking whole RTL and used dependencies
« Reply #1 on: July 14, 2017, 10:40:22 pm »
The RTL must be compiled to support smartlinking. (with -CX).

You don't name your target or what sizes you get.

Note that debug info is also a factor in binary size.

 

TinyPortal © 2005-2018