Home

Bjorn Reese

Decoy

Decoy is a program instrumentation module that allows you to selectively annotate your program with tracing and debugging information.

Decoy is an extension for the LLVM compiler infrastructure.

Program instrumentation is done via the Decoy programming language.

Decoy is still in the early development stages, so all information here may change.

Invocation

Examples

@begin
{
  print("Program starts");
}

@end
{
  print("Program stops");
}

@enter:main
{
  print("Entering main()");
}

@leave:main
{
  print("Leaving main()");
}