• Buffalox@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    25 days ago

    I’m sorry are we somehow assuming floating-point pointers, now, of course you need to convert there.

    “floating-point pointers” is not a thing:

    “casting” is a specific thing you do in C

    No it’s not:
    https://en.wikipedia.org/wiki/Type_conversion

    In computer science, type conversion,[1][2] type casting,[1][3] type coercion,[3] and type juggling[4][5] are different ways of changing an expression from one data type to another.

    You don’t even have a clue, you are just talking trash.

    In assembly you don’t generally talk about pointers, but address modes. Like register, immediate or memory (indirect).

    Have you ever actually been programming any serious assembly? Because you sure don’t sound like it.

    • barsoap@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      edit-2
      25 days ago

      Great! Now please explain how opcodes are expressions. Also, what processor instruction a cast from one pointer type to another pointer type corresponds to.

      You are way out of your depth here. Have you even implemented a compiler.