11 Replies Latest reply on Feb 22, 2012 2:16 PM by viscocoa

    Question regarding registers


      What is the addressable unit of registers? A byte or a 4-byte integer/float, or a 16-byte vector?


      If I declare a byte type private variable, will it occupy a 1-byte register, or 4-, or 16-byte register?


      How are registers used by the ALU? In the following statements,


      float4 x;

      x.a = 1.f;                              // writing to the first element of x

      float y = x.b + 2.f;                // reading the second element of x


      can the last two instructions be excuted simultaneously?


      Thank you in advance!