Hi to all! First question, please don't eat me... ^^;;

This is a discussion on Hi to all! First question, please don't eat me... ^^;; within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Hi! I'm new here, I'm Fergus and I'd like to learn the most from you all. As first question, I'd ...

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    4

    Smile Hi to all! First question, please don't eat me... ^^;;

    Hi!

    I'm new here, I'm Fergus and
    I'd like to learn the most from you all.

    As first question, I'd like to ask you to
    explain me better what does happen during
    the compiling and linking time.

    I looked for the answer to this question
    around the web but i didn't succed in it... =(

    I'm italian so please be patient with me... =)
    Talk to me as easy as possible. ^^;;

    Please help me.

    Tnx 2 all.
    Last edited by ncrfgs; 12-14-2001 at 06:30 PM.

  2. #2
    A Banana Yoshi's Avatar
    Join Date
    Oct 2001
    Posts
    859
    Compiling means to change from C++ codes to assembly / machine code.
    Yoshi

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    4
    Hi, tnx for the answer!

    I'll try to explain better the question anyway.
    Maybe i should say that at this moment i use
    Dev-C++.

    What does the compiler do during the compiling
    and linking time?

    If during the compiling time the compiler change
    from C++ codes to assembly / machine code, what
    does happen during the linking time?

    Why does the compiler need to start the linking
    process although there is just one *.cpp file in
    the project?

    Tnx very much!

  4. #4
    Former Member
    Join Date
    Oct 2001
    Posts
    955
    are those questions for school or something like that?

    Oskilian

  5. #5
    31173 h4x0r gnu-ehacks's Avatar
    Join Date
    Nov 2001
    Posts
    556
    Let's see....

    The compiler is a very interesting piece of software. When you compile something, you are changing the human readable information into a computer instruction list. This is in a .o file, usually called an object file.

    During the linking time, all the object files are changed into .exe files, which are basically a group of object files, made into an executable file.

    Even if there is just one object file, the linker is run so that the .o file is changed into a .exe file. Only on Linux are .o files executables also.

    I hope this helped you. I like to see programmers that want to know how everything works, and not just rely on the ease of use of something like MS VC++.
    What will people say if they hear that I'm a Jesus freak?
    What will people do if they find that it's true?
    I don't really care if they label me a Jesus freak, there is no disguising the truth!

    Jesus Freak, D.C. Talk

    -gnu-ehacks

  6. #6
    Registered User
    Join Date
    Dec 2001
    Posts
    4
    Tnx, gnu-ehacks for the very interesting
    answer, it helped me much.



    The compiler is [...] an object file.
    I'd wish to ask you an other question anyway.
    Scuse me if I impose on you but I'm having
    some difficult to find the aswer on the web
    and in FAQs. =(

    How the compiler behave when he face
    the introduction of and #include procedure
    within the code?
    I mean, ASAIN the compiler include the
    portion of text it was told by the procedure
    in the place of the line that start with
    the #include. But how this affect the compiling
    and linking time?

    Do the *.h files have something to do with
    the compiling time or the linking one?



    I hope this [...] like MS VC++.
    I used to write a bit in visual basic with MS VB
    but, as you can imagine, IMHO it does everything
    but let you know how everything works. I hate
    this. =)

    I was afraid MS VC++ was something of the
    same "specie" so i find interesting to try
    something different.



    I didn't reply you immediately because
    here in italy it was a little bit late
    so i went sleeping ^^;;



    Scuse me for my bad english. =)
    Tnx a lot!



    PS for oskilian

    are those questions for school or something like that?
    I study Information Engeenering at the
    university and during the lesson my
    Informatic Elements I (1) teacher discuss
    this matter and i found it very interesting
    so i would like to go into it deeply.

    Why did you ask me that question? =)

    C U

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 06:51 PM
  2. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 01:52 PM
  3. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 10:47 PM
  4. Question about linked lists.
    By cheeisme123 in forum C++ Programming
    Replies: 6
    Last Post: 02-25-2003, 01:36 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21