Re: [Freedos-kernel] Linking Question

2004-11-12 Thread Arkady V.Belousov
Hi!

9-Ноя-2004 21:14 [EMAIL PROTECTED] (Karthigan Srinivasan) wrote to
[EMAIL PROTECTED]:

KS> me with this question. Based on the kernel makefiles I wrote a simple C
KS> and asm file and tried linking them.

 There are no reasons to do this, because kernel memory model very
specific.

KS> It warns that there is no stack and when I try to
KS> run the exe file, the dos window hangs.




---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


Re: [Freedos-kernel] Kernel Linking Question

2004-11-12 Thread Arkady V.Belousov
Hi!

9-Ноя-2004 16:44 [EMAIL PROTECTED] (Karthigan Srinivasan) wrote to
[EMAIL PROTECTED]:

KS> When I look at the test output of the kernel compilation, I do not
KS> understand this particular portion of the compilation:
KS> -..\utils\rmfiles libm.lib
KS> c:\tc\tlib c:\tc\lib\cs.lib *LDIV *LXMUL
KS> *LURSH *LLSH *LRSH
KS> C:\WINDOWS\SYSTEM32\COMMAND.COM /c for %i
KS> in (*.obj) do ..\utils\patchobj CODE=LCODE %i
KS> C:\WORK\SOURCE\KE2034\LIB>..\utils\patchobj
KS> CODE=LCODE LDIV.OBJ
[...]
KS> CODE=LCODE LXMUL.OBJ   c:\tc\tlib libm +LDIV
KS> +LXMUL +LURSH +LLSH +LRSH
KS> -..\utils\rmfiles *.OBJ
KS> -..\utils\rmfiles *.OBJ
KS> Could anyone please tell me what are we doing with the lib files here.

 There extracted specific modules from standard compiler libraries, then
they patched, then included into libm.lib library. Intermediate object files
with then removed after this.

 BTW, 2034 is very outdated kernel.

KS> What does the patchobj do?

 As its name says, it patches object files - replaces one name by other.

KS> Also, the kernel is finally linked with the following command:
KS> tlink /m/c/s/l @KTC8616.lnk
KS> Is @KTC8616.lnk just a string of obj files
KS> followed by lib files separated by space?

 Just look into ktc8616.lnk file and you will see what it contains.




---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel