def METHOD_NAME(allSyscallNames, allSyscalls):
    # Open file for writing
    outFile = open("SyscallInformation.C", "w")
    # Write out "header" information
    outFile.write("/* This file was autogenerated from syscalls/generateSyscallInformation.py */" + "\n")
    outFile.write("#include \"dyn_regs.h\"\n")
    outFile.write("#include \"dyn_syscalls.h\"\n")
    outFile.write("SyscallInformation::SyscallInformation() {\n")
    curOS = allSyscalls[0][0]
    curArch = allSyscalls[0][1]
    curPlatName = curOS + "_" + curArch 
    outFile.write("\n/* " + curOS + " " + curArch + " Numbers */\n")
    outFile.write("Platform " + curPlatName + "(" + curArch + ", " + curOS + ");\n")
    for syscall in allSyscalls:
        newPlat = False
        if (curOS != syscall[0]):
            curOS = syscall[0]
            newPlat = True
        if (curArch != syscall[1]):
            curArch = syscall[1]
            newPlat = True
        if (newPlat):
            curPlatName = curOS + "_" + curArch
            outFile.write("\n/* " + curOS + " " + curArch + " Numbers */\n")
            outFile.write("Platform " + curPlatName + "_plat(" + curArch + ", " + curOS + ");\n")
        curName = syscall[2]
        curPlatformNumber = syscall[3]
        # Write out the two mapping insertions
        outFile.write(curPlatName + "_syscallNumbers.insert(make_pair<MachSyscall::SyscallIDIndependent, MachSyscall::SyscallIDPlatform>(Syscall::dyn_" + curName + ", " + str(curPlatformNumber) + "));\n")
        outFile.write(curPlatName + "_syscallNames.insert(make_pair(" + curPlatformNumber + ", \"" + curName + "\"));\n")
    # Write out "footer" information
    outFile.write("}\n")
    # Close file
    outFile.close()