How does the compiler (I'm of course talking about gcc, but this should be valid for any compiler availible) tell the linker to put main in the start?
Does the linker do that by it self?
As far as I've understod it it's like this:
The compiler puts compiled programs into object files and then tells the linker to link them all. The main func is somewhere in there, and isn't specificly placed at the start, but instead called by _start, which I have no idea where it comes from, or where it's placed.
Happy coding wishes
the one and only
[b]Niklas Ulvinge[/b] [white]aka [b]IDK[/b][/white]