compiler-explorer icon indicating copy to clipboard operation
compiler-explorer copied to clipboard

[REQUEST]: Reduce the assembly output of MSVC compilers.

Open olafurw opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe

https://godbolt.org/z/KqhhYMzMz

When compiling with MSVC, there is sometimes a lot of assembly output that is not directly related to the code that will execute. Here above is just one example but I'm guessing there is much more.

Describe the solution you'd like

There are existing filters for the other compilers, I'd want similar ones for MSVC. I know I've heard in the past that it was tricky with MSVC but I don't remember why and trying to search for it in the issues I didn't find anything.

Describe alternatives you've considered

The assembly is there but you have to scroll through quite a bit of stuff.

Additional context

Not applicable

olafurw avatar Apr 02 '22 23:04 olafurw

There were previously some issues with syntax highlighting of string literals and directives in microsoft's assembly output. I got the highlighting rules to a "good enough" state but there are still issues there. MASM is much different than other assemblies, I think at a certain point if we want to do things like highlighting and filtering of MASM well we'd have to actually make a special parser for the grammar.

jeremy-rifkin avatar May 10 '22 07:05 jeremy-rifkin

In theory /MD should help this, but isn't working on the CE site. I am looking into it.

timmy-ms avatar Jun 06 '22 16:06 timmy-ms