Skip to content

AndreasPK/late-cc-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The simplest set up for working on a plugin.

To build the plugin

cabal new-build plugin

To test the plugin

cabal new-test test

Using the LateCCPlugin

To use the plugin on a package:

  • Add the plugin as a dependecy to the package like any other package.
  • Enable profiling and disable automatic insertion of cost centres:
profiling: true
  • Add a ghc option to enable the plugin for the package: ghc-options: -fplugin=LateCCPlugin

And that's it! This will disable the default method of const centre insertion and instead insert cost centres at the end of the compilation pipeline.

About

Insert late cost centres

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published