Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question for Programmers and the Like
#7
I have often wondered the same thing as the OP, at least how I am reading it, but I find these answers kind of vague. They touch on the general concepts of binary and on/off or 1/0.

How does a compiler translate "int i = 0; while (true) { i++; }" into an infinite process of summation? "A compiler does it" does not suffice for me.

A compiler is a program, and it compiles written code into a program. That creates a loop, so how did the first compiler exist? How do you go from basic binary circuity akin to Minecraft's Red dust to the complex systems used everyday by billions?

I suppose, ultimately, what I want to know is this: How could a person manually compile a program? I realise it would be incredibly complex for most programs and there is no reason to do it other than knowing for the sake of knowing.

On a mildly related subject, why will a binary that works on Windows not work on Linux and vise-versa? (I have no idea how Mac uses binaries.)

I might be diverting from the OP's train of thought, though.
Reply


Messages In This Thread
Question for Programmers and the Like - by Khoi - 2010-10-29, 01:51 PM
Question for Programmers and the Like - by larmie - 2010-10-29, 02:06 PM
Question for Programmers and the Like - by Spaz - 2010-10-29, 03:34 PM
Question for Programmers and the Like - by Hazzy - 2010-10-29, 03:49 PM
Question for Programmers and the Like - by Fiel - 2010-10-29, 04:02 PM
Question for Programmers and the Like - by Spaz - 2010-10-29, 04:45 PM
Question for Programmers and the Like - by Nikkey - 2010-10-29, 05:23 PM
Question for Programmers and the Like - by Hazzy - 2010-10-29, 07:44 PM
Question for Programmers and the Like - by Eos - 2010-10-29, 09:56 PM
Question for Programmers and the Like - by Spaz - 2010-10-29, 10:28 PM
Question for Programmers and the Like - by Eos - 2010-10-29, 10:48 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)