Results 1 to 5 of 5

Thread: whats the difference between "building" and "compiling"?

  1. #1

    Thread Starter
    Hyperactive Member CaptainPinko's Avatar
    Join Date
    Jan 2001
    Location
    London, Ontario, Canada
    Posts
    332

    Question whats the difference between "building" and "compiling"?

    whats the difference between "building" and "compiling"?
    "There are only two things that are infinite. The universe and human stupidity... and the universe I'm not sure about." - Einstein

    If you are programming in Java use www.NetBeans.org

  2. #2
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    In C++ compiling is just converting the source code to binary, building is compiling plus linking with any other needed files to make an .exe file. I have never heard of someone building a Java application or applet though. Maybe someone could clarify (or correct me if I'm wrong )?
    Alcohol & calculus don't mix.
    Never drink & derive.

  3. #3
    Addicted Member
    Join Date
    Nov 2001
    Location
    Yewston, Texis
    Posts
    240
    Sometimes there's no difference. In a project with more than one source file, a build will refer to a complete compiling of all the sources and executable generation so that actual testing can occur.

    cudabean

  4. #4

    Thread Starter
    Hyperactive Member CaptainPinko's Avatar
    Join Date
    Jan 2001
    Location
    London, Ontario, Canada
    Posts
    332
    whats is "linking" anyway?
    i have the option to do both inthe project menu of NetBeans



    and i was wondering what they do.

    also what are "Beans" really?
    Attached Images Attached Images  
    Last edited by CaptainPinko; Jan 31st, 2002 at 03:26 PM.
    "There are only two things that are infinite. The universe and human stupidity... and the universe I'm not sure about." - Einstein

    If you are programming in Java use www.NetBeans.org

  5. #5
    Member hgroot's Avatar
    Join Date
    Dec 2001
    Location
    Amsterdam
    Posts
    52
    With J2EE, building a project means much more than compiling it. (think of jar, war, ear files). It covers the definition of 'building' as much as building an executable.

    When creating executables, source code is compiled into object files, with relative references to each other. A build will link these object files into machine code with hard references (the executable).

    It's also the difference whether your application can run stand-alone (build) or inside an interpreter (compile; actually a Java VM is an interpreter). You could say that J2EE applications also run 'standalone' on an application server.
    Last edited by hgroot; Feb 15th, 2002 at 07:37 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width