• barsoap@lemm.ee
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 month ago

    As I stated it’s MORE complex today, not less, as the downvoters of my posts seem to refuse to acknowledge.

    The reason you’re getting downvoted is because you’re saying that “64-bit CPU” means something different than is universally acknowledged that it means. It means pointer width.

    Yes, other numbers are important. Yes, other numbers can be listed in places. No, it’s not what people mean when they say “X-bit CPU”.

    claiming that new CPU architectures haven’t increased in bit width for 30 years is simply naive and false, because they have in many more significant ways than the base instruction set.

    RV128 exists. It refers to pointer width. Crays existed, by your account they were gazillion-bit machines because they had quite chunky vector lengths. Your Ryzen does not have a larger “databus” than a Cray1 which had 4096 bit (you read that right) vector registers. They were never called 4096 bit machines, they Cray1 has a 64-bit architecture because that’s the pointer width.

    Yes, the terminology differs when it comes to 8 vs. 16-bit microcontrollers. But just because data bus is that important there (and 8-bit pointers don’t make any practical sense) doesn’t mean that anyone is calling a Cray a 4096 bit architecture. You might call them 4096 bit vector machines, and you’re free to call anything with AVX2 a 256-bit SIMD machine (though you might actually be looking at 2x 128-bit ALUs), but neither makes them 64-bit architectures. Why? Because language is meant for communication and you don’t get to have your own private definition of terms: Unless otherwise specified, the number stated is the number of bits in a pointer.

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

      It means pointer width.

      https://en.wikipedia.org/wiki/64-bit_computing

      64-bit integers, memory addresses, or other data units[a] are those that are 64 bits wide. Also, 64-bit central processing units (CPU) and arithmetic logic units (ALU) are those that are based on processor registers, address buses, or data buses of that size.

      It also states Address bus, but as I mentioned before, that doesn’t exist. So it boils down to instruction set as a whole requiring 64 bit processor registers and Databus.
      Obviously 64 bits means registers are 64 bit, the addresses are therefore also 64 bit, otherwise it would require type casting every time you need to make calculations on them. But it’s the ability to handle 64 bit registers in general that counts, not the address registers. which is merely a byproduct.

      • barsoap@lemm.ee
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        2
        ·
        1 month ago
        1. The whole article overall lacks sources.
        2. That section is completely unsourced.
        3. It doesn’t say what you think it says.

        You were arguing the definition of “X-bit CPU”. We’re not talking about “X-bit ALU”. It’s also not up to contention that “A 64-bit integer is 64 bit wide”. So, to the statement:

        Also, 64-bit central processing units (CPU) and arithmetic logic units (ALU) are those that are based on processor registers, address buses, or data buses of that size.

        This does not say which of “processor register, address buses, or data buses” applies to CPU and which to ALU.

        Obviously 64 bits means registers are 64 bit, the addresses are therefore also 64 bit,

        Having 64 bit registers doesn’t necessitate that you have 64 bit addresses. It’s common, incredibly common, for the integer registers to match the pointer width but there’s no hard requirement in theory or practice. It’s about as arbitrary a rule as “Instruction length must be wider than the register size”, so that immediate constants fit into the instruction stream, makes sense doesn’t it… and then along come RISC architectures and split load immediate instructions into two.

        otherwise it would require type casting every time you need to make calculations on them

        Processors don’t typecast. Please stop talking.

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

            I’m sorry are we somehow assuming floating-point pointers, now, of course you need to convert there. “casting” is a specific thing you do in C which may or may not involve conversion of actual data. Processors don’t speak C. Processors don’t have a type system.

            You can use 32-bit pointers in x86_64 long mode, no issue. You don’t even need to bit-fiddle: mov rax, [esi] is perfectly legal. Opcode 0x67488B06. Dereferencing rsi would be 0x488B06.

            • Buffalox@lemmy.world
              link
              fedilink
              English
              arrow-up
              1
              ·
              edit-2
              1 month 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
                1 month 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.


                EDIT:

                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.

                Oh cute edit to make to make my response look bad retroactively.

                But as you wanted to get pedantic: A pointer is a value which is intended to be dereferenced, that (hopefully) corresponds to a valid memory address. “address”, “pointer”, “reference”, it’s a matter of taste which one you use. It exists “in assembly” just as “an index” exists in C: Not because it’s a language feature, but because it’s a concept you use when writing in the language. And yes I speak pretty fluent x86, at least the non-SIMD part. Did I mention that I was there, at ground zero “why is is thing not compiling in 64 bit mode” times, fixing code?

                Now, back to my question:

                what processor instruction does a cast from one pointer type to another pointer type corresponds to.

                Figuring out the answer to that will tell you everything you need to know about where you went wrong. Where you went from talking about actual concepts to arguing semantics.

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

      It means pointer width.

      Where did you get that from? Because that’s false, please show me dokumentation for that.
      64 bit always meant the ability to handle 64 bit wide instructions, and because the architecture is 64 bit, the pointers INTERNALLY are 64 bit, but effectively they are only for instance 40 bit when accessing data.
      Your claim about pointer width simply doesn’t make any sense.
      That the CPU should be called by a single aspect they can’t actually handle!!! That’s moronic.

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

        That the CPU should be called by a single aspect they can’t actually handle!!! That’s moronic.

        People literally use the word “literally” to mean figuratively. It doesn’t make any sense. One might even call it moronic.

        But it’s the way it’s done. Deal with it.