C/C++ behind the scenes and it's interaction with machine itself

Hello there.
I'm new on this forum, however I've used it as reference in past in my travels in vast and rich C++ world.
I'm reasonably familiar with C++ programming, however have a lot of questions regarding it, and thinking that somebody could help me answer in some of them in this post.
So, I'm really interested in programming, specially in C++ or C-like languages, but this is quite dry, not because I can't use it anywhere at this moment, but because I'm interested into how it interacts with hardware.
To be more specific I'm interested how does C/C++ works 'behind the scene', I think that if I would know more about this background, this would give me more understanding about how C language is working at all.
I know how to write basic scripts in C++, but they do not interact with other things on my machine or something at all. Max what I can do is console applications which basical is I/O. But I really interested how it works in machine itself..
I'm hoping that anyone could guide my where I could get more information about it, maybe some references?
Almost forgot, I would like to find out more about std libraries in C for example: iostream.h, fstream, .. etc.
How they work and how to apply them, how to read them, how to find something there that can be used?
Would appreciate it..
Thanks in advace.
By the way liked this forum for it's helpfull answers regarding tutorials and C++ stuff. Sorry my rusty English..
Last edited on
First off, neither C or C++ is a scripting language. Iostream and fstream are not C.

Anyway, there are whole books on this subject. Mind narrowing your questions a bit? Or we could just suggest some reading material.
I used wrong word, sorry this my mistace.
Doesn't C language has Iostream libraries, or is it use cstdio?

I interested how does C/C++ works with machine(Computer) itself, how does processed works so we can get something out of basically nothing... Is that good enough?
Last edited on
closed account (zb0S216C)
C++ provides the instructions, the compiler takes the instructions and turns it into binary code. The operating system then loads the program into memory (when it's executed) through the memory loader. The CPU takes the binary code from memory, interprets the binary code as CPU instructions, and executes each instruction one-by-one.

Wazzak
All This I know..
I expected more deep explanation..
Then it's time to buy a book. Pretty big topic your wanting in depth explanation about
Yeah, probably you're right.
I just wandered is here gonna be someone who could answer this..
Thanks anyway. I'm just interested in this thing really deeply..
Maybe then you could give me a direction on what book should i seek for?
Last edited on
There's several books on it. I'd suggest a book on computer architecture, operating systems, and then one on compilers.
Can't think of anything better than Lippman's 'Inside the C++ Object Model'
http://www.amazon.com/Inside-Object-Model-Stanley-Lippman/dp/0201834545

Dated (published in 1996), but still a book of lasting relevance as far as the object-oriented subset of C++ is concerned.
Last edited on
Thank you ResidentBiscuit and JLBorges for your guidance..
Helped me a lot.
Topic archived. No new replies allowed.