HFX Forum

Neophyte Section => Neophyte Discussion => Topic started by: forTwist on September 11, 2005, 01:32:47 AM

Title: binaries and source
Post by: forTwist on September 11, 2005, 01:32:47 AM
I have a basic question.  What is the difference between compiling from source and from binaries?  I don't understand when I read from google or anything.  Any help appreciated! ;D
Title: Re:binaries and source
Post by: Metgod on September 11, 2005, 10:24:03 AM
Compiling will create object files, and unless otherwise specified, the compilers will usually link those object files into an executable (binary) file. The reason someone might not want it automaticaly linked is when you have projects that are multiple files; you creat e the objects and then at the end link them all together.

So the source is the actual code (be it assembly or C or C++ or ...) and the binary is the end result of compiling and linking.

It used to be where coders would need to understand binary completely, but they got smart (and lucky for us) and made assembly (which is low level). Then some others got even smarter and created high level languages (C, etc -- although some would say C is middle level). And well, now we can practically use English to code...

Does that answer your question (and maybe then some) ?

Title: Re:binaries and source
Post by: forTwist on September 11, 2005, 11:24:39 AM
Actually, that's the part I'm confused about.  Why do you need to compile a binary file if it's already compiled?  Like, in Windows, you would just double click on the "binaries" and it would open up.  What more is there to do to it?
Title: Re:binaries and source
Post by: Metgod on September 11, 2005, 12:38:48 PM
You're absolutely right; you don't compile binaries.

Where did you hear you compile binaries ? Or better yet, what exactly did they/it say ?

Title: Re:binaries and source
Post by: Tazinator on September 12, 2005, 12:46:18 PM
Did it perhaps say "Recompile binaries" in which they are probably meaning you need to recompile from the source and recreate the binaries.

I think its a matter of speech and gramatical errors.

Like saying NIC Card. What exactly is a "Network Interface Card Card"?  ;D
Title: Re:binaries and source
Post by: godaigo on September 12, 2005, 04:52:14 PM
Is it possible that you're talking about compiling a kernel?
Title: Re:binaries and source
Post by: Metgod on September 12, 2005, 05:11:58 PM
Was thinking the same thing, Taz ....

I think it probably was a misunderstanding.