Skip to content
  • Jonas Maebe's avatar
    Merged revisions... · 060d81b8
    Jonas Maebe authored
    Merged revisions 11878,11881-11882,11889,11891-11893,11895,11899-11902,11935,11938,12212,12304,12308-12310,12316,12330-12332,12334,12339-12340 via svnmerge from 
    svn+ssh://jonas@svn.freepascal.org/FPC/svn/fpc/branches/wpo
    
    ........
    r11878 | jonas | 2008-10-11 02:25:18 +0200 (Sat, 11 Oct 2008) | 19 lines
    
      + initial implementation of whole-program optimisation framework
      + implementation of whole-program devirtualisation
      o use:
         a) generate whole-program optimisation information (no need
            to completely compile the program and all of its units
            with -OW/-FW, only the main program is sufficient)
          fpc -OWdevirtcalls -FWmyprog.wpo myprog
         b) use it to optimise the program
          fpc -B -Owdevirtcalls -Fwmyprog.wpo myprog
         (the -B is not required, but only sources recompiled during
          the second pass will actually be optimised -- if you want,
          you can even rebuild the rtl devirtualised for a particular 
          program; and these options can obviously also be used         ...
    060d81b8