News for hackers. Stuff that matters.
Re:Let's write a setjmp by speps on Sunday February 12, 2023 @04:47AM (#34761504)
I'm not sure you need to use assembly for writing the MSVC version, it supports the "naked" calling convention: https://learn.microsoft.com/en-us/cpp/cpp/rules-and-limitati...

Similarly, it has the "noreturn" decl spec: https://learn.microsoft.com/en-us/cpp/cpp/noreturn

It'd be interesting if that works the same as in GCC for the article 's objective.

Re:Let's write a setjmp by flohofwoe on Sunday February 12, 2023 @05:33AM (#34761741)
MSVC doesn't support inline assembly for x86-64.