Re:Asm-declaration – Embed assembly language code within a C...
by pjmlp on Friday July 26, 2019 @02:07PM
(#20536910)
For such corner cases using MASM on day 1 until the new VC++ release isn't much of an issue.
[ Parent
| on HN ]
Re:Asm-declaration – Embed assembly language code within a C...
by tropo on Friday July 26, 2019 @06:53PM
(#20539054)
MASM is just an assembler, with no awareness of the C or C++ code. MASM is unable to place arbitrary bytes into the middle of functions that are written in C or C++.
To fix a problem like Spectre, and generally to solve unusual problems that the compiler vendor isn't dealing with, the full capability of an inline assembler is required.
Re:Asm-declaration – Embed assembly language code within a C...
by pjmlp on Saturday July 27, 2019 @03:09AM
(#20540801)
Sure it can, I really don't see any difference between that and a naked call with LTO, beyond the convenience of saving about a minute not having to write a prototype for the function being called and adding MASM into the build.