about programming stages...or what ever (noob)

Started by sydetys, November 12, 2008, 10:21:28 PM

Previous topic - Next topic

sydetys

Hi!

I introduced myself in assemlber and c++ basics. I noticed that both languages produces .OBJ file before they make .EXE.

Now, I am interested technical background of  combiling/assembling. I mean some guru has made linker program him/herself, right?

So what happens when c++ compiler or assember makes .OBJ file from source file and what happens when OBJ file is made/linked into EXE file?

Using SIMPLE and BASIC example from MASM32: 


.386

.model flat, stdcall

option casemap :none

include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\masm32.inc

includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\masm32.lib

.data

      HelloWorld  db  "Hello World!", 0

.code

start:

    invoke StdOut, addr HelloWorld
    invoke ExitProcess, 0

end start



So I am interested to know what assembler/c++ compiler does (bit by bit...if possbile) to that piece of text when it is making OBJ file and then EXE file.

thank you

Mark Jones

"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08