Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • No, processor instructions aren't tied to bitness of the architecture. x86, for example, has variable-length instructions. Also this is question is very unclear and vague. Commented Aug 7, 2016 at 18:36
  • You're saying the answer is 64 instructions in 256 megabytes? So each instruction is 4MiB long? On x86, the right answer is one instruction per byte. On something like MIPS with 32-bit fixed-length instructions, the answer is 256MiB / 4B = 2^28 / 2^2 = 2^26 instructions. Commented Aug 7, 2016 at 18:40
  • @PeterCordes OP says each instruction is 32 bits. IOW, (4 bytes) * 64 = 256 MB. The math works out perfectly fine. Yeah. Commented Aug 7, 2016 at 18:42
  • @mystical: um no -- 4 bytes * 64 = 256 bytes. Not 256 MB; very different. Commented Aug 7, 2016 at 18:49
  • 1
    I think my instructor made a mistake and he meant 256 bytes instead of 256MB. Because only with 256 megabytes it would make sense. Thank you all for your help. I also think when he wrote 32 bit architecture he meant about the instruction, now some instructions are 64 bits. Commented Aug 7, 2016 at 18:55