code: def compile_clang(
      prg: str, header: str = CLANG_PROGRAM_HEADER
  ) -> bytes:
      # TODO: remove file write. sadly clang doesn't like the use of /dev/stdout here
      with tempfile.NamedTemporaryFile(delete=True) as output_file:
          subprocess.check_output(
              args=(
                  "clang -shared -march=native -O2 -Wall -Werror -x c -fPIC - -o "
                  + str(output_file.name)
              ).split(),
              input=(header + prg).encode("utf-8"),
          )  # noqa: E501
          return pathlib.Path(output_file.name).read_bytes()
  
file_path: tinygrad/tinygrad/runtime/ops_clang.py
imports: import ctypes, subprocess, functools, pathlib, tempfile
  from tinygrad.device import Compiled, MallocAllocator
  from tinygrad.helpers import cpu_time_execution
  from tinygrad.codegen.kernel import LinearizerOptions
  from tinygrad.renderer.cstyle import uops_to_cstyle, CStyleLanguage
label_desc: Use image node_id 1 for calling a global function with example usage: compile_clang(prg, header) and returns: pathlib