Changeset 6568 for branches/mini/src
- Timestamp:
- Aug 20, 2001, 8:47:54 PM (24 years ago)
- Location:
- branches/mini/src/win32k/test
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mini/src/win32k/test/mini.asm
r6546 r6568 1 ; $Id: mini.asm,v 1.1.2.1 1 2001-08-16 15:14:40bird Exp $2 ; 3 ; Hav eing great fun making small executables...1 ; $Id: mini.asm,v 1.1.2.12 2001-08-20 18:47:53 bird Exp $ 2 ; 3 ; Having great fun making small executables... 4 4 ; 5 5 ; Copyright (c) 2001 knut st. osmundsen (kosmunds@csc.com) … … 15 15 ; High-octane stock. 16 16 ; 17 ; Build this in the Odin32 VAC3 environment to get a 273 bytes result. 18 ; Exehdr, alp and ilink is required. 19 ; nmake -f mini.mak NORMAL=1 -a 20 ; 21 ; Build this in the Odin32 Watcom environment to get a 274 bytes result. 22 ; Exehdr, alp and wlink is required. 23 ; nmake -f mini.mak NORMAL=1 -a 17 24 ; 18 25 ; … … 75 82 76 83 ifndef NORMAL 77 ; 78 ; 79 ; 80 ; Tiny edition - everything but the code is hardcoded! 81 ; 84 85 ; 86 ; 87 ; 88 ; Tiny edition - Custom category - everything but the code is hardcoded! 89 ; 90 ; Build it in an Odin32 VACxx/Watcom environment. ALP and link.exe is required. 91 ; nmake -f mini.mak 82 92 ; 83 93 ; -
branches/mini/src/win32k/test/mini.mak
r6546 r6568 1 # $Id: mini.mak,v 1.1.2. 7 2001-08-16 15:14:41bird Exp $1 # $Id: mini.mak,v 1.1.2.8 2001-08-20 18:47:54 bird Exp $ 2 2 3 3 # … … 68 68 69 69 70 !ifdef NORMAL 70 71 # 71 # Main rule 72 # Main rule for the high octane category. 72 73 # 73 !ifdef NORMAL74 74 !if 1 75 75 $(OBJDIR)\$(TARGET).exe: $(OBJS) $(DEFFILE) $(OBJDIR)\$(TARGET).lrf 76 !ifdef WATCOM 76 !ifdef WATCOM # 274 bytes 77 77 wlink system os2v2 file {$(OBJS)} name $(OBJDIR)\.exe \ 78 78 import vprintf LIBCN.150 \ 79 79 # import DosPutMessage MSG.5 \ 80 80 option offset=0x0000 option alignment=1 option stack=4060 81 # skip this step if it aint allowed, but then LXLITE has to get $(OBJDIR)\.exe as input. :-) 81 82 mv $(OBJDIR)\.exe $@ 82 83 !else … … 85 86 $(OBJS), $(OBJDIR)\$(TARGET).exe, $(OBJDIR)\$(TARGET).map, os2386.lib, mini.def; 86 87 !else 87 !ifndef VAC36 88 !ifndef VAC36 # 273 bytes 88 89 -12 ilink /NOFREE /FORCE /ALIGNMENT:1 /Map /BASE:0x10000 /PACKCODE /PACKDATA /NOEXEPACK \ 89 90 $(OBJS), $(OBJDIR)\$(TARGET).exe, $(OBJDIR)\$(TARGET).map, os2386.lib, mini.def; … … 107 108 !else 108 109 109 $(OBJDIR)\$(TARGET).exe: $(OBJS) $(DEFFILE) $(OBJDIR)\$(TARGET).lrf 110 # 111 # Builds the custom 196 bytes mini.exe. 112 # 113 $(OBJDIR)\$(TARGET).exe: $(OBJS) $(DEFFILE) myexe2bin.exe 110 114 link $(OBJS), $(OBJDIR)\$(TARGET)ne.exe, $(OBJDIR)\$(TARGET).map; 111 115 myexe2bin $(OBJDIR)\$(TARGET)ne.exe $@ 512 112 116 113 # exe2bin $(OBJDIR)\$(TARGET)ne.exe $@ 114 117 # help tool, custom exe2bin. 118 myexe2bin.exe myexe2bin: myexe2bin.c 119 !ifndef WATCOM 120 icc myexe2bin.c 121 !else 122 wcl386 myexe2bin.c 123 !endif 115 124 !endif 116 125 -
branches/mini/src/win32k/test/minihll.c
r6547 r6568 1 /* $Id: minihll.c,v 1.1.2. 4 2001-08-16 15:57:01bird Exp $1 /* $Id: minihll.c,v 1.1.2.5 2001-08-20 18:47:54 bird Exp $ 2 2 * 3 3 * Minimal 'High Level Language' executable. … … 7 7 * Project Odin Software License can be found in LICENSE.TXT 8 8 * 9 * 10 * Build this in a WATCOM Odin32 environment using wmake. 11 * wcc386, and wlink is required. 12 * SET DEBUG= 13 * mkdir bin 14 * mkdir bin\release.wac36 15 * 16 * For 276 bytes result which uses LIBCN: 17 * wmake -f minihll.mak -u -a LIBC=1 18 19 * For 286 bytes result which uses MSG.DosPutMessage: 20 * wmake -f minihll.mak -u -a 21 * 22 * Any attempt to compile in a VACxx environment will produce a exefile with a 23 * bad stack. Causing SYS0189. 9 24 */ 10 25 -
branches/mini/src/win32k/test/minihll2.c
r6534 r6568 1 /* $Id: minihll2.c,v 1.1.2. 1 2001-08-15 03:12:41bird Exp $1 /* $Id: minihll2.c,v 1.1.2.2 2001-08-20 18:47:54 bird Exp $ 2 2 * 3 3 * The data file. … … 25 25 #pragma data_seg("CODEANDDATA", "CODE") 26 26 #endif 27 #ifdef __IBMC__ 28 #pragma data_seg(CODEANDDATACODE32) 29 #endif 27 30 char szMsg[19] = {"I'm really small!\n"}; 28 31
Note:
See TracChangeset
for help on using the changeset viewer.