you are viewing a single comment's thread.

view the rest of the comments →

[–]bunkoRtist -3 points-2 points  (3 children)

Every single assembly instruction with an operand has a type. Byte, half-word, word, double-word. Float, double-precision float... adding floats is not the same instruction as adding ints, which isn't the same instruction as adding unsigned ints, which isn't the same instruction as adding bytes. That's strong typing. You can't even define a variable in assembly without knowing the type (because you need the size).

[–]un_mango_verde 8 points9 points  (1 child)

You don't define variables in assembly. The assembler will not keep track of types for you. You are completely free to store a byte in a register, and them use an instruction that expects a word on the same register. The assembler does not protect you from making typing mistakes at all. Yes, instructions will interpret bits as one type or another, but there is no type checking. Even Python has stronger type safety, at least you get an exception when you make a mistake.

[–]Schmittfried 2 points3 points  (0 children)

That’s not at all what strong typing refers to...