Does anyone know if multiple modules (object files) linked together are treated as seperate memory segments when you link to a .exe file?
My kernel is a flat binary file (an exe with the header removed). I'm always afraid to create seperate .obj files in my OS because I don't know if they are merged into a single segment or have to be loaded seperately. I use TASM/TLINK to build.
I ask because it takes forever to build my OS since I have to re-assemble everything including libraries every time I build. I want to save time.
-Robert
Object files and segments...
RE:Object files and segments...
My kernel is an elf executable, i have around 15-20 object files created from asm code. They are then linked into one file known as kernel.bin. I have no issues with segments because they dont get created at compile time. I dont know your scenario but i dont think segments are created at all.
There is always one way to know for sure, try compiling into multuple object files and then link and execute, if it goes beyond the normal mannor of your kernels execution then you know something has gone wrong.
Moose.
There is always one way to know for sure, try compiling into multuple object files and then link and execute, if it goes beyond the normal mannor of your kernels execution then you know something has gone wrong.
Moose.