On 8/27/07, Eric Auer <[EMAIL PROTECTED]> wrote:
> - SYS OpenWatcom farmalloc
I see you worked around that now in SVN. But I wonder, since you use
allocmem() already for Turbo C, why not also use _dos_allocmem() for
OW, and just get rid of any farmalloc and inline assembly for this? It
works the same way except that it returns 0 instead of -1 if
successful.
> - IDLEHALT Turbo C label names
Any variable shared between C and assembly must be adorned with ASM in
the header files. I just fixed that.
> - SYS Turbo C versus compressed FAT32 kernels
Hmm this is succesful here... I wonder if there is some subtle make problem.
The last bit of build -r tc 86 fat32 (copy & paste via "dosemu -dumb"):
c:\tc201\tcc -c -1- -zCHMA_TEXT -DWITHFAT32 -zCINIT_TEXT -zDIB
-zRID -zTID -zBIB -zGI_GROUP -zSI_GROUP initclk.c
Turbo C Version 2.01 Copyright (c) 1987, 1988 Borland International
initclk.c:
Available memory 306610
c:\tc201\tlink /m/c @KTC8632.lnk;
Turbo Link Version 2.0 Copyright (c) 1987, 1988 Borland International
..\utils\exeflat kernel.exe kernelf.exe 0x60 -S0x10 -S0x74 -E
header len = 1024 = 0x400
image size (less header) = 79284 = 0x135b4
first relocation offset = 0 = 0x0
relocation at 0x0000:0x0021 ->0e02
[lots of relocations]
relocation at 0x1265:0x015c ->0083
Processed 151 relocations, 33 not shown
Z:\COMMAND.COM /c if exist kernelf.exe upx --best kernelf.exe
Ultimate Packer for eXecutables
Copyright (C) 1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007
UPX 3.00d Markus Oberhumer, Laszlo Molnar & John Reiser Apr 27th 2007
File size Ratio Format Name
-------------------- ------ ----------- -----------
79348 -> 45039 56.76% dos/exe kernelf.exe
Packed 1 file.
Z:\COMMAND.COM /c if exist kernelf.sys upx --best kernelf.sys
..\utils\exeflat kernelf.exe kernel.sys 0x60 -U
header len = 32 = 0x20
image size (less header) = 44975 = 0xafaf
first relocation offset = 0 = 0x0
relocation at 0x0afa:0x0006 ->0000
Processed 1 relocations, 0 not shown
-..\utils\rmfiles kernelf.exe kernelf.sys
copy kernel.sys ..\bin
kernel.sys => ..\bin\kernel.sys
copy kernel.sys ..\bin\KTC8632.sys
kernel.sys => ..\bin\KTC8632.sys
copy kernel.map ..\bin\KTC8632.map
kernel.map => ..\bin\KTC8632.map
Processing is done.
Bart
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel