Page 1 of 1

Exporting functions from an Exe

Posted: Mon Jun 02, 2008 1:16 pm
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

Re: Exporting functions from an Exe

Posted: Tue Jun 03, 2008 3:58 am
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