Compilation For Intrusion Detection Systems