INNER CODE UNIT · Python

read_windows_exports

uxlfoundation/oneDAL · dev/release_tests/compare_release_trees.py:639

def read_windows_exports(path):
    dumpbin = shutil.which("dumpbin")
    if not dumpbin:
        raise RuntimeError("dumpbin is required to compare Windows DLL exports")
    output = run_tool([dumpbin, "/NOLOGO", "/EXPORTS", str(path)])
    symbols = set()
    in_exports = False
    for line in output.splitlines():
        stripped = line.strip()
        if stripped.startswith("ordinal hint"):
            in_exports = True
            continue
        if not in_exports or not stripped:
            continue
        parts = stripped.split()
        if len(parts) >= 4 and parts[0].isdigit():
            symbol = parts[3].split("=", 1)[0]
            if not is_ignored_windows_export(symbol):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…