How to create a dll manager in an OS

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
harmanjeet
Posts: 10
Joined: Sun Feb 06, 2011 7:03 am
Location: India
Contact:

How to create a dll manager in an OS

Post by harmanjeet »

I am beginner to OSDev. I want to create a dll manager which can load or unload the dll files. I have no idea about this. Can someone help..?
User avatar
gravaera
Member
Member
Posts: 737
Joined: Tue Jun 02, 2009 4:35 pm
Location: Supporting the cause: Use \tabs to indent code. NOT \x20 spaces.

Re: How to create a dll manager in an OS

Post by gravaera »

Yo:

Please first discard the idea of specifically loading "DLLs". The "DLL" is a form of what is known as a "Shared executable". There are many "Executable formats". An executable format is nothing but an encapsulating specification for presenting information about a binary file to a kernel. Generally speaking, each executable format has the following sub-types for binaries:
  • Executable
  • Relocatable
  • Shared
What you want to learn about is "dynamic linking" of "shared executables" on program load-up. This is something you would only need to worry about when you begin writing your executable parser and loader. Basically, the executable format you choose to use for your kernel must provide a way for programs to state which shared executables are needed within its address space before it can run, and then the kernel itself must have a systematic search path so it can "know" where to look to find those shared executables. There's no real need to have a shared library "manager"; the only thing needed is for you to allow the user to tell the kernel where to look for shared libraries.

Also, you'll notice I introduced several terms to you here: they're keywords you should look up so you can begin to understand what you need to know :) Google them up.

--All the best
gravaera
17:56 < sortie> Paging is called paging because you need to draw it on pages in your notebook to succeed at it.
Igor1024
Member
Member
Posts: 32
Joined: Mon Apr 11, 2011 12:19 am

Re: How to create a dll manager in an OS

Post by Igor1024 »

'DLL manager' and 'I am beginner to OSDev' seem to be not analogous. To develop shared memory manager you firstly should have done a pile of other work... You just want to understand how does it work? Windows - bright example.
User avatar
harmanjeet
Posts: 10
Joined: Sun Feb 06, 2011 7:03 am
Location: India
Contact:

Re: How to create a dll manager in an OS

Post by harmanjeet »

Thanx Gravaera for the useful info. It will help. :D
Post Reply