Binary asm parsing depends on the host platform instead of the objdump output
Author: mattgodbolt-moltyCreated Sep 30, 2026Updated Sep 30, 2026
AsmParser in lib/parsers/asm-parser.ts decides how to read binary (objdump) output from the platform CE itself runs on, not from the output it is given:
- The constructor picks
lineRebyprocess.platform. On Windows it only matchesC:/...line records; everywhere else, only POSIX/...ones. processBinaryAsmsetssource = nullafter every function label whenprocess.platform === 'win32'.
Consequences:
- Tests of binary-mode source mapping can't run on Windows. They're skipped there instead: the RISC-V test, the consecutive library label test from #9139 (#9189), and the new tests in #9128 and #9129.
- Windows hosts (winprod) never map binary-mode asm back to source lines. It's unclear whether that's deliberate or a workaround that outlived its reason.
Suggested direction: make the parser independent of the host platform. Either match both path styles, or take the style from the compiler or its config rather than process.platform. Then drop the source = null special case if it's no longer needed, and remove the skipIf(win32) guards so these tests run everywhere. That is a behaviour change on winprod, so it wants checking against real Windows objdump output.
Source: compiler-explorer/compiler-explorer