#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2005
    Posts
    27
    Rep Power
    0

    Exclamation Understanding how CPUs work


    Would anybody recommend any resources useful in understanding how a CPU works (that is, how does it represent data, pointers, etc.) ?

    How does assembly language relate to a CPUs?
  2. #2
  3. Providing fuel for space ships
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2004
    Location
    nr Edinburgh, Scotland
    Posts
    14,382
    Rep Power
    3848
    Can't think of any specific resources, but a quick google search should bring you what you need.
    The No Ma'am commandments:

    1.) It is O.K. to call hooters 'knockers' and sometimes snack trays
    2.) It is wrong to be French
    3.) It is O.K. to put all bad people in a giant meat grinder
    4.) Lawyers, see rule 3
    5.) It is O.K. to drive a gas guzzler if it helps you get babes
    6.) Everyone should car pool but me
    7.) Bring back the word 'stewardesses'
    8.) Synchronized swimming is not a sport
    9.) Mud wrestling is a sport
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2006
    Posts
    427
    Rep Power
    43
    Assembly language is as close to the cpu you can get without resorting to machine code itself, ie, hex/binary. Compilers compile code to assembly which gets translated into binary.

    Just google "how microprocessors work" for a lot of good sites.
  6. #4
  7. Periodically energetic Perler
    Devshed Regular (2000 - 2499 posts)

    Join Date
    May 2005
    Location
    Dublin, Ireland
    Posts
    2,265
    Rep Power
    538
    Originally Posted by bjr87
    Would anybody recommend any resources useful in understanding how a CPU works (that is, how does it represent data, pointers, etc.) ?

    How does assembly language relate to a CPUs?
    Heres a few links for you:
    Art Of Assembly Book

    Chapter 2.7 is possably what your looking for:
    Chapter 2.7

    Hope this helps.
    Displeaser
    Vi Veri Veniversum Vivus Vici.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2005
    Location
    Bay Area, California
    Posts
    841
    Rep Power
    1682
    Art of Assembly is excellent for x86, but you really want a simple uP like MIPS to learn from. You'd probably find the CPU articles by Hannible (e.g. Pipelining 1&2) and the articles by Johan useful:

    http://arstechnica.com/articles/paedia/cpu.ars
    http://www.aceshardware.com
    (sadly largely dead when Johan left, but search around)

    If you are a more hands-on person, then you might find trying a few MIPS exercises useful (I'm sure you can find some tutorials to help). For that, you'll need a MIPS simulator:
    http://www.cs.wisc.edu/~larus/spim.html

IMN logo majestic logo threadwatch logo seochat tools logo