That's not automatically bad, in fact it can be better than just inlining the instructions. I won't judge this instance of the pattern, but if faced with (perhaps incomplete at the time) intrinsics, or hand coded inline assembly, vs generating with an external script (or "mini compiler" if you will), it might be less error prone to generate.
Assuming you mean x86, that part was originally written around 30 years ago via this funky setup that did MD5 and SHA-1 from the same code. It's not really any kind of example of current practice.
What's the usecase for this? You're already paying for the instance to be up but it's being deliberately under-utilised in case you have to start a VM?
I saw some assembly in code at work for various hot path stuff but it was all written before the last version control move. The 64-bit stuff was just done in plain C though which was probably good enough by the time it needed to updated to build as 64-bit.
Various sources also claim that Dutch intelligence deployed or was involved with deploying Stuxnet in Iran.
In 2019, it was reported that an Iranian mole working for Dutch intelligence at the behest of Israel and the CIA inserted the Stuxnet virus with a USB flash drive or convinced another person working at the Natanz facility to do so.
As a Flemish person I can attest that the Dutch have outstanding engineers. So if their intelligence agency has a proper budget, they definitely have a nice pool to select from.
Flanders has not been a part of the Netherlands for almost 200 years and was only ever really part of it for 15 years (It's the Dutch speaking part of Belgium).
reply