C & the inline keyword

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

degibson

Golden Member
Mar 21, 2008
1,389
0
0
Originally posted by: eLiu
Cogman: so most of that last post went *whoosh* on over my head. If I wanted to take some classes or some reading or whatnot to improve my understanding of how CPUs & compilers work... have some suggestions?

Computer Architecture for CPUs. Compilers for... well... compilers.
 

slugg

Diamond Member
Feb 17, 2002
4,723
80
91
Yea, computer architecture is what you'll want to learn if you want to learn how CPU's work under-the-hood. The gist of the topic is how instruction sets work.

So I don't keep bringing this post off topic, I'll PM you from now on. LOL
 

degibson

Golden Member
Mar 21, 2008
1,389
0
0
Originally posted by: slugg
Yea, computer architecture is what you'll want to learn if you want to learn how CPU's work under-the-hood. The gist of the topic is how instruction sets work.
ISA = Instruction Set Architecture. If you want to learn how they work under the hood, study microarchitecture.

BTW, under-the-hood knowledge helps a LOT for high-performance coding.
 

Cogman

Lifer
Sep 19, 2000
10,284
138
106
Originally posted by: degibson
Originally posted by: slugg
Yea, computer architecture is what you'll want to learn if you want to learn how CPU's work under-the-hood. The gist of the topic is how instruction sets work.
ISA = Instruction Set Architecture. If you want to learn how they work under the hood, study microarchitecture.

BTW, under-the-hood knowledge helps a LOT for high-performance coding.

Or at very least it lets you understand WHY some "tricks" Don't speed things up at all :). It is definitely needed to know how to get optimum performance though.
 

eLiu

Diamond Member
Jun 4, 2001
6,407
1
0
Originally posted by: degibson
Originally posted by: slugg
Yea, computer architecture is what you'll want to learn if you want to learn how CPU's work under-the-hood. The gist of the topic is how instruction sets work.
ISA = Instruction Set Architecture. If you want to learn how they work under the hood, study microarchitecture.

BTW, under-the-hood knowledge helps a LOT for high-performance coding.

Yeah, I'm getting that impression the deeper I get into HPC. Strangely most of the people around me haven't had any formal training in "under the hood" knowledge, and it hadn't even really been suggested to me yet. Doh guess I should rethink my course plan.
 

degibson

Golden Member
Mar 21, 2008
1,389
0
0
Originally posted by: eLiu
Originally posted by: degibson
Originally posted by: slugg
Yea, computer architecture is what you'll want to learn if you want to learn how CPU's work under-the-hood. The gist of the topic is how instruction sets work.
ISA = Instruction Set Architecture. If you want to learn how they work under the hood, study microarchitecture.

BTW, under-the-hood knowledge helps a LOT for high-performance coding.

Yeah, I'm getting that impression the deeper I get into HPC. Strangely most of the people around me haven't had any formal training in "under the hood" knowledge, and it hadn't even really been suggested to me yet. Doh guess I should rethink my course plan.

Sorry to rain on the parade, but to understand whats going on, at least from classes, you'll need to take graduate level courses in architecture. Thats probably not worth your time. You can get a vague idea of the kind of tradeoffs involved in an intro course. I'd recommend auditing the intro course if you're curious.