Subj : Re: linker creating To : comp.programming From : Thad Smith Date : Mon Sep 19 2005 09:50 pm P418 wrote: > I learn creating of linkers.Let's create linker,of any language. > Or create new programming language. > For first time,i want to create linker,then kompilator. Linkers are a lot of work for no glory. There are a lot of decisions to be made: 1. What output formats do you want to support? 2. What input object formats do you want to support? 3. What library formats do you want to support? 4. What user options to you want to support? overlays absolute location ordering of segments mapping of segments / classes / groups to different types of memory (useful for embedded applications) 5. What linkage maps features do you want to support? 6. Are you going to support debuggers? I'm sure there are many more issues I am not aware of. That said, you can do something simple. When I was in college in ancient days I wrote a relocatable assembler and linking loader for a DEC PDP-9L. No options, no frills. Load one module after another and resolve the external references. Thad .