Berkeley CSUA MOTD:Entry 18568
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/25 [General] UID:1000 Activity:popular
5/25    

2000/6/29-7/1 [Computer/HW/CPU] UID:18568 Activity:very high
6/29    A typical 32 bit RISC architecture has 32 bits/instruction. That
        means each instruction is 32 bits, w/6 bits op code and the rest
        is operands, const, etc. RISC binaries are usually bigger than
        that of variable instruction set CISC (e.g. x86, Java byte code).
        So does that mean a 64 bit machine with binaries compiled for its
        native instruction set have a much bigger size than that of the
        original 32 bit counterpart because the operands and const are now
        much bigger?
        \_ no.  that just means that your register sizes can be up to
           64-bits wide without artificial concatination like in the
           MIPS I/II ISA.  MIPS III/IV which are both 64-bit architectures
           still use 32 bit instructions but their registers are larger
           and are capable of using 40/44-bit addressing.  CISC instructions
           on average, are not considerably smaller than RISC because of
           their variable lengths.  Keep in mind that many CISC instructions
           actually exceed 32-bits.
                \_ so what happens when I have two operands that are 32
                   bits, and would overflow on a 32 bit machine but not on a
                   64 bit machine? Also, do 32 bit operands get sign
                   extend? Also, wouldn't you need a 64 bit instruction
                   to do the following more efficiently:
                   (word1<<32|word2)+(word3<<32|word4)?

        \_ What does this have to do with swelling biological tissue?
                   \_ There are special intructions to load values into
                      the upper portion of the 64-bit registers.  I don't
                      know what they are off the top of my head but
                      download the MIPS IV ISA manual and you can find
                      out.  In terms of doing things efficiently, it is.
                      You have to look at things from a statistical
                      point of view.  Each 64-bit value comprise of 4
                      16-bits so theoretically you would need 4 instructions
                      to form a single value.  But for the common case,
                      most of those 16-bits are just zeros so it's not
                      as bad as you think.  And if you think about it,
                      it's much more efficient to do something with 4
                      instructions than to do it with 2 instructions
                      that are double the size because in the latter case
                      you force all instructions to double in size which
                      isn't necessary.
                      \_ just to add to that, many program store constants
                         in a certain part of the binary so it's a matter
                         of issuing a lw.d instruction.
                   \_ You use registers instead of immediates, dumbass.
                        \_ ali, is that you?
                          \_ no. obviously, you don't understand my style.
                             i only talk shit at people who think they know
                             something, give out wrong answers, and become
                             irate when you suggest to them that they should
                             add some uncertainty in their answers when they
                             clearly don't know what they're talking about.
                             i think the above is exemplary of what a good
                             motd exchange should look like. -ali
                             \_Because without ali here to keep things straight,
                                the motd would be full of anonymous trolls and
                                wrong answers and oh my!  We all owe a big
                                debt to ali for keeping the motd the pure source
                                of factual information that it is!  Three
                                cheers for ali!!!
                             \_   the arrogant punk speaketh again!
                                 -  anti-ali association (AAA)
                                 \_ Why do you have a problem with arrogance?
                                    So the man is smarter than you and knows
                                    it.  I mean it's not like it takes much
                                    to be smarter than you.
                                  \_ Arrogance is a bad thing.  Being smarter
                                     is not.  Being smarter is not the same
                                     thing as arrogance.  Try a dictionary.
                                        --smarter than you
                                     \_ Well said.
                                     \_ Why is arrogance a bad thing?  A
                                        smarter person is better than a less
                                        smart person and should treat the less
                                        smart person accordingly.
                                        \_ Arrogance is a Bad Thing because if
                                           we all lived the way you'd have it,
                                           life would suck for everyone.  You
                                           especially, I figure.
                                                --smarter than you
                                           \_ Why would it suck?  I am prepared
                                              to defer to my intellectual
                                              superiors.  This lame appeal
                                              to Kantian ethics will get you
                                              nowhere.
                                              \_ Because Dalai Lama said so!
                                  \_ moron.  - the flaming goat
        \_ Actually, in sparc, for example, the cpu did 32-bit loads
           from memory. So you wanted both the instruction and the
           data to be contained in one 32-bit word. If I'm remembering
           my horrible sparc-asm encounter correctly.
                       \_ that dash shouldn't be there
           Or maybe that was the 64-bitcpu mess
           \_ much more common than loading a 64 bit constant is loading
              an immediate address with a small number of bits (like, say 10),
              and have that address point to a long constant. on an alpha,
              you see a lot of:
                      lda $1,some_const
                      ldq $17,0($1)
              where some_const is literal label which takes only a few bits
              to embed in an instruction. -ali
2025/05/25 [General] UID:1000 Activity:popular
5/25    

You may also be interested in these entries...
2009/6/1-3 [Computer/HW/CPU] UID:53068 Activity:high
5/31    History of winners and losers by *popularity*:
        VHS > Beta Max
        USB2 > Firewire
        x86 > PowerPC > Everything Else > DEC Alpha > Itanium
        BlueRay > HDDvd
        \_ It's too early to tell RE: "Blue"Ray. They may both turn out to be
	...
2006/3/1-2 [Computer/HW/CPU] UID:42039 Activity:high
2/28    So this new Intel Mac Mini... didn't the old one have better
        graphics and also cost less?
        \_ I think Apple is overcharging for it, since the new model is $100
           more from the last base priced model.  As components go down in
           price, so should the unit, or the specs should go up with a flat
           price.  However, keep in mind you do get 256MB more ram ($75),
	...
2005/6/7-9 [Computer/HW/CPU, Computer/SW/OS/OsX] UID:38018 Activity:moderate
6/7     Why Intel? why not AMD?  They both run on notebooks(unlike the G5)
        Also, does this pave the groundwork for porting OS X to all PC
        machines?
        \_ You know, you guys are trying to find good technical reasons
           for the move. I think it's actually simpler than that. Economics.
           IBM can't produce their chips cheaper than Intel, which we all
	...
2005/1/24-25 [Computer/HW/CPU] UID:35870 Activity:high
\1/24    On 21264, you have 80 physical registers of which 31 are visible.
        However, on P4's you have 128 physical registers, of which
        8 of them are visible at one time. The rest are used for
        speculative storage and renaming (to prevent WAW and WAR hazards).
        So, why 128 physical registers when only 8 are exposed (I presume
        they're only ax-dx, and eax-edx)? Isn't that a lot?
	...
2005/1/15-17 [Computer/HW/CPU] UID:35732 Activity:nil
1/15    Which book was used in cs60b many years ago to teach RISC (MIPS)
        assembly?
        \_ Author was Gerry Kane.
        \_ http://csua.org/u/apw
	...
2004/7/12 [Computer/HW/CPU] UID:32234 Activity:high
7/12    Architecture question:  Are RISC programs generally larger than
        equivalent CISC programs (binaries)?
        \_ yes.
        \_ uh oh, I anticipate yet another heated CISC/RISC debate
           why can't we all get along?
	...
2002/7/1-2 [Computer/SW/OS/OsX] UID:25254 Activity:high
7/1     What's your impression of the quality of Apple engineering? My
        wife asked me this question and the best answer I had was, "well,
        it's, uh, complicated." Before OS X came out, Apple had reputation
        for innovation but not for delivering products in a timely manner.
        Now that OS X is out, it seems that they're being taken a bit more
        seriously.
	...
2001/11/29 [Computer/HW/Memory] UID:23140 Activity:nil
11/28   Has the computer architecture research been so degraded to a point
        that we're more interested in finding out how big the L1/L2 cache
        size should be, instead of finding doing cool things like
        CISC->RISC-> ????
        \_ Has the computer architecture research been so degraded to a point
           that we're more interested in finding doing cool things like if
	...
2001/8/30-31 [Computer/SW/OS/Misc] UID:22301 Activity:nil 53%like:22292
8/30    Are there any instructional machines still running HP-UX? Any machine
        names would be helpful. I need to test some code on HP-UX/PA-RISC.
        \_ I think the general-use cory lab might have it
           \_ They run compaq digital unix.
              \_ Really?
                 \_ Yup.
	...
2001/8/23-24 [Computer/HW/CPU] UID:22220 Activity:nil
8/23    so why is that apple doing all the PowerPC evangelism?  Is it just
        because they are the only company using PowerPC for personal computers?
        shouldn't the company/ies that make the PowerPC be doing some of their
        own evangelism too?  Something to keep up with "Intel Inside"?
        \_ Apple is the only consumer PC companies with PowerPC computer.
           Definitely, they are up against the Pentium <insert number here>
	...
2001/5/14-16 [Computer/HW/CPU] UID:21268 Activity:high
5/14    AMD announces mobile chips. Yay for competition.
        \_ Whatever. x86 is for girls and kids, Real Men
           use RISC!
           \_ What do women use then?
              \_ women don't use computers, they are barefoot and pregnant
                 and in the kitchen fetching men beers.
	...