Say I write a program in assembler, and I accidentally use some wrong opcode or introduce a bug of some sort.
Would it be possible, since assembly is such a low-level language, that I could accidentally do something destructive?
Or does the operating system (any or all) keep a good level of resource management, sandboxing, etc. that would mitigate this?
Yes, if you write incorrect code, then bad things can happen. This is true in many languages, even high-level ones (consider System.delete("*.*")
in a hypothetical high-level language). But in assembler, it's very easy to make mistakes that are difficult to spot.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With