title: How can I compile, assemble and link a C++ file using Clang?
body: <p>I have been coding for over 5 years and would now like to take a step away from IDE's and try a project without one. I have the things I need to get started (I think), a HelloWorld.cpp file, the Windows Command Prompt open and Clang installed.</p>
  <p>Now that I have these things my question is this - What do I need to type into the Command Prompt to make Clang take my C++ code in the HelloWorld.cpp file and <strong>compile</strong> it into a separate file containing the <code>assembly code</code>, and then make Clang take my assembly code and <strong>assemble</strong> it into a separate file containing the <code>object code</code>, and then finally make Clang take my object code and <strong>link</strong> it into a separate file containing the <code>machine code</code>?</p>
  <p>Ultimately meaning at the end I will have 4 files, one with C++ code, one with assembly code, one with object code and finally one with machine code. The point of all of this being the ability to read and understand each stage of the process before running the file containing the machine code.</p>
  <p>Being someone who has left the world of IDE's for the first time, I find the official Clang documentation very confusing and cannot find a straight answer to my question.</p>