Thread: Compilers

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    1

    Question Compilers

    Hi! I'm new to C++ Programming. I got have a few tutorials , but none of them are clear on what a compiler dose, where i can get one and how building and compiling works! I don't even knoe how to execute a program! Can some one Please tell me how they work, what they do and how to use them coz i have NO idea!
    reconmendations for compilers are welcome!

    Thanks

  2. #2
    Registered User
    Join Date
    May 2002
    Posts
    317
    http://www.cprogramming.com/

    Look in the upper left under compilers

    edit:

    A compiler takes the code you write and converts it to an obj file which is basically its ascii equivalent. For higher level languages it also produces the code to generate memory for variables, resolving all that class and abstract stuff to memory locations and assigns ids to all your functions, and..... This could go on and on. For the general idea just retain the first line and some of the stuff inbetween. Now a linker does what it sounds like, that is it links all your files together and converts it to a binary executable format.
    Last edited by Traveller; 06-05-2002 at 06:40 PM.

  3. #3
    well said.

    If you want to know all the technical stuff, I used to have a link somewhere that described every proccess in detail. I lost it when my HD crashed though

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    good explanation, but lets make that plain english.
    your compiler takes the sourcecode that you write. the compiler compiles to what is called object code. what the linker does is take object files and put them together and turn them into what we commonly call executables(.exe in windows). if you want an expansion on what i said, then look at Traveller's post .

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ Builder Comparison
    By ryanlcs in forum Tech Board
    Replies: 14
    Last Post: 08-20-2006, 09:56 AM
  2. Is It Possible To Install Multiple Compilers?
    By mishna_toreh in forum C Programming
    Replies: 3
    Last Post: 05-13-2005, 07:32 AM
  3. Compilers for Windows
    By LegendsEnd in forum Windows Programming
    Replies: 2
    Last Post: 03-26-2004, 08:03 AM
  4. Compilers, Compilers, Compilers
    By Stan100 in forum C++ Programming
    Replies: 11
    Last Post: 11-08-2002, 04:21 PM
  5. target OS compilers
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 07-01-2002, 11:08 AM