A book about computer architecture ?

The Partridge Family were neither partridges nor a family. Discuss.
User avatar
BurakCanik
Posts: 250
Joined: February 8th, 2014, 9:16 pm
Location: Istanbul, Turkey

A book about computer architecture ?

Post by BurakCanik » January 2nd, 2015, 12:35 pm

Hello my fellow chilizens,

I want to learn more about the inner workings of a computer, you know how cpu's work, instruction pipelines etc. Because I figured If you need to optimize a game then you need to have a solid understanding about how a cpu works (duh!). Anyways what should be the course taken here ? Are there any online tutorials/sites about the subject that is comprehensive. Or do you guys know any books about the subject ?
If real is what you can feel, smell, taste and see, then 'real' is simply electrical signals interpreted by your brain" - Morpheus

User avatar
BurakCanik
Posts: 250
Joined: February 8th, 2014, 9:16 pm
Location: Istanbul, Turkey

Re: A book about computer architecture ?

Post by BurakCanik » January 2nd, 2015, 12:38 pm

By the way I found this on amazon :
"The Elements of Computing Systems: Building a Modern Computer from First Principles" by Noam Nisan & Shimon Shocken. It has positive reviews. What do you guys think ?
If real is what you can feel, smell, taste and see, then 'real' is simply electrical signals interpreted by your brain" - Morpheus

cameron
Posts: 794
Joined: June 26th, 2012, 5:38 pm
Location: USA

Re: A book about computer architecture ?

Post by cameron » January 2nd, 2015, 5:50 pm

Did a little bit of looking and it seems like a decent book if you are at the beginner level of understanding computing systems and to computer science in general. I have not taken such a course. All in all a course/book like this would be handy to have and read through. Just flipping through the pages you will probably be going over a bit of information you already know, but you can't go wrong with more knowledge :D.

I have done a ton of research and tests for optimization in c++. In many cases you can optimize the speed of WELL written code by about 2-3X. However, in some the performance is negligible. I have been able to achieve this when I didn't even think it was possible. I can't speak the same for directx pipeline as I haven't really gotten deep into that. I will post my findings if anyone is curious. I may even make a detailed post here.
Computer too slow? Consider running a VM on your toaster.

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: A book about computer architecture ?

Post by albinopapa » January 3rd, 2015, 6:29 am

Depending on what you are specifically wanting to do, a book on writing assembly code might be more to the point. Writing assembly for x86/x64 processors, or ARM or other processors is as close to "cutting the fat" as you can get once you get the experience and understand the commands. I like cameron haven't researched "this" path because I don't plan on getting that "close to the metal" as it were.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

User avatar
BurakCanik
Posts: 250
Joined: February 8th, 2014, 9:16 pm
Location: Istanbul, Turkey

Re: A book about computer architecture ?

Post by BurakCanik » January 3rd, 2015, 8:18 am

You're right albinopapa. So let me clarify : I was studying directX as usual. Then I saw a "thing" in a shader code like this :

[unroll]
for( ... )
{
...
}

( I couldn't use because then the underlining and bolding wouldn't work, so sorry about this. )

Then I researched it and absolutely didn't understand anything. Next thing I know I'm reading wikipedia pages one after another, about topics like instruction pipelines, branch predication etc. So that was my concern.

Also cameron that book is more of a beginner book I know. I'm open to suggestions :) Also I'd love to hear about your optimization research. Actually I'm sure everybody would :D Also I know I say also a lot so yeah.
If real is what you can feel, smell, taste and see, then 'real' is simply electrical signals interpreted by your brain" - Morpheus

LoveXNA
Posts: 35
Joined: July 17th, 2013, 9:00 pm

Re: A book about computer architecture ?

Post by LoveXNA » January 3rd, 2015, 12:46 pm

perhaps these books can help :
http://www.amazon.com/Modern-X86-Assemb ... 484200659/
Publisher: Apress; 1 edition (November 25, 2014) Very nice !

And
http://www.amazon.com/X86-Assembly-Lang ... 466568240/
Looks promising

User avatar
BurakCanik
Posts: 250
Joined: February 8th, 2014, 9:16 pm
Location: Istanbul, Turkey

Re: A book about computer architecture ?

Post by BurakCanik » January 3rd, 2015, 3:33 pm

The first book you recommended (Modern X86 Assembly Language Programming: 32-bit, 64-bit, SSE, and AVX) seems nice. I'll do some research about this book but I think this fits my purposes. Thanks LoveXNA!
If real is what you can feel, smell, taste and see, then 'real' is simply electrical signals interpreted by your brain" - Morpheus

Clodi
Posts: 175
Joined: November 18th, 2012, 7:47 pm

Re: A book about computer architecture ?

Post by Clodi » January 4th, 2015, 12:11 am

"The Elements of Computing Systems: Building a Modern Computer from First Principles"
I own that book. It's incredible.
Haven't actually read it yet but will soon. :lol:

PutPixel255
Posts: 363
Joined: March 12th, 2013, 6:06 am
Location: "Keep Louisville Weird"

Re: A book about computer architecture ?

Post by PutPixel255 » January 7th, 2015, 3:33 am

http://webcast.berkeley.edu/playlist#c, ... urdT_-Nqi1

As comprehensive as it gets until the next course. Reading books expends too much effort on the glossies so I just watch videos. Currently I'm into signal processing.
They may have a newer course in a week or so. Whenever winter 15 starts up.

http://www.amazon.com/Black-Video-Game- ... 0672328208
This was the last book I read on the subject. 2005
Until they develop stem cell research for my eyes :shock: ,but that's getting off topic.

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: A book about computer architecture ?

Post by chili » January 10th, 2015, 2:48 pm

How low down do you want to go? If you want to fully understand what makes up a cpu, you should study a book on microelectronic circuit design, semiconductor fabrication and layout, one on digital logic design, then learn a simple scalar architecture like the 6502, then maybe 8086 ~ 80486, then start learning about superscalar features such as pipelining, branch prediction, and advanced caching.

If you just want to write faster code then a lot of that will be superfluous, most of what you would need to know would be covered in a good book on assembly for your architecture of choice.
Chili

Post Reply