automate generating binstubs for guard