Hi!
3-Фев-2004 07:46 Arkady V.Belousov wrote to
[EMAIL PROTECTED]:
AVB> - with BC stack size may be defined (in source!) by next definition:
AVB> extern unsigned _Cdecl _stklen = ...;
AVB> How do this in Watcom? Which default stack size in Watcom (and where this
AVB> explained)?
BTW, lguide.ihp says that I may increment stack size by OPTION STACK,
but this option affects only .EXE format header. .COM files with and w/o
this option are equal. I found in cstart_t.obj mention for __stacksize, but
in cstrt086.asm I see that it valid only with "__TINY__", and this variable
not explained/mentioned anywhere else (not in *.h nor *.ihp).
AVB> - how to compile .COM files? With command line
AVB> wlink form dos com file attrib.obj
AVB> wlink gives some errors about "segment relocation", then "stack segment
AVB> ignored", then page fault. Without "com" in command line, wlink generates
AVB> .exe file. With "sys com" instead "form dos com" wlink says "undefined
AVB> system name".
AVB> - when I run wlink without LIB environment variable, it can't find
AVB> libraries. Bug (ignored libpath in wlink.lnk/wlsystem.lnk)? (Of course,
AVB> WATCOM variable is defined).
Sorry, I found the trouble myself (explained in lguide.ihp) - wlink
searches wlink.lnk (only in) PATH! Now wlink works without LIB environment
variable and with "sys com" in command line.
AVB> - BCC generates 9148 bytes of ATTRIB.COM (7306 with redifinition for some
AVB> RTL functions), Watcom generates 10296 bytes of ATTRIB.EXE (with WPP
...and 10116 for ATTRIB.COM. Of course - with same object file (in
small memory model) difference is only in .EXE header (64 bytes) and in
different startup modules (for .COM - cstart_t.obj; for .EXE comes from
clibs.lib?).
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel