Exporting functions from an Exe

Programming, for all ages and all languages.
Post Reply
User avatar
einsteinjunior
Member
Member
Posts: 90
Joined: Tue Sep 11, 2007 6:42 am

Exporting functions from an Exe

Post by einsteinjunior »

Hi to all,
My OS actually has the PE file format as the executable format.
The kernel is an exe but i will like it to export some functions that other kernel modules should use.It should be like the ntoskrnl.exe file of windows or the executable of the bochs emulator,that is an executable exporting functions instead of dlls doing it.I will permit me to use a lot less run time relocations in the kernel and make it faster.
Please can someone tell me hoe it can be done in gcc?
Thanks to all
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Re: Exporting functions from an Exe

Post by jal »

einsteinjunior wrote:Please can someone tell me hoe it can be done in gcc?
I didn't know GCC could output PE at all. Anyway, you'd probably need DLLs then. Afaik, these are also PEs, but with exported functions.


JAL
Post Reply