Changeset 6568 for branches/mini/src


Ignore:
Timestamp:
Aug 20, 2001, 8:47:54 PM (24 years ago)
Author:
bird
Message:

Documented it.

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.11 2001-08-16 15:14:40 bird Exp $
    2 ;
    3 ; Haveing 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...
    44;
    55; Copyright (c) 2001 knut st. osmundsen (kosmunds@csc.com)
     
    1515; High-octane stock.
    1616;
     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
    1724;
    1825;
     
    7582
    7683ifndef 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
    8292;
    8393;
  • branches/mini/src/win32k/test/mini.mak

    r6546 r6568  
    1 # $Id: mini.mak,v 1.1.2.7 2001-08-16 15:14:41 bird Exp $
     1# $Id: mini.mak,v 1.1.2.8 2001-08-20 18:47:54 bird Exp $
    22
    33#
     
    6868
    6969
     70!ifdef NORMAL
    7071#
    71 # Main rule
     72# Main rule for the high octane category.
    7273#
    73 !ifdef NORMAL
    7474!if 1
    7575$(OBJDIR)\$(TARGET).exe: $(OBJS)  $(DEFFILE) $(OBJDIR)\$(TARGET).lrf
    76 !ifdef WATCOM
     76!ifdef WATCOM # 274 bytes
    7777    wlink system os2v2 file {$(OBJS)} name $(OBJDIR)\.exe \
    7878    import vprintf LIBCN.150 \
    7979#    import DosPutMessage MSG.5   \
    8080        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. :-)
    8182    mv $(OBJDIR)\.exe $@
    8283!else
     
    8586        $(OBJS), $(OBJDIR)\$(TARGET).exe, $(OBJDIR)\$(TARGET).map, os2386.lib, mini.def;
    8687!else
    87 !ifndef VAC36
     88!ifndef VAC36 # 273 bytes
    8889    -12 ilink /NOFREE /FORCE /ALIGNMENT:1 /Map /BASE:0x10000 /PACKCODE /PACKDATA /NOEXEPACK \
    8990        $(OBJS), $(OBJDIR)\$(TARGET).exe, $(OBJDIR)\$(TARGET).map, os2386.lib, mini.def;
     
    107108!else
    108109
    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
    110114    link $(OBJS), $(OBJDIR)\$(TARGET)ne.exe, $(OBJDIR)\$(TARGET).map;
    111115    myexe2bin $(OBJDIR)\$(TARGET)ne.exe $@ 512
    112116
    113 #    exe2bin $(OBJDIR)\$(TARGET)ne.exe $@
    114 
     117# help tool, custom exe2bin.
     118myexe2bin.exe myexe2bin: myexe2bin.c
     119!ifndef WATCOM
     120    icc myexe2bin.c
     121!else
     122    wcl386 myexe2bin.c
     123!endif
    115124!endif
    116125
  • branches/mini/src/win32k/test/minihll.c

    r6547 r6568  
    1 /* $Id: minihll.c,v 1.1.2.4 2001-08-16 15:57:01 bird Exp $
     1/* $Id: minihll.c,v 1.1.2.5 2001-08-20 18:47:54 bird Exp $
    22 *
    33 * Minimal 'High Level Language' executable.
     
    77 * Project Odin Software License can be found in LICENSE.TXT
    88 *
     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.
    924 */
    1025
  • branches/mini/src/win32k/test/minihll2.c

    r6534 r6568  
    1 /* $Id: minihll2.c,v 1.1.2.1 2001-08-15 03:12:41 bird Exp $
     1/* $Id: minihll2.c,v 1.1.2.2 2001-08-20 18:47:54 bird Exp $
    22 *
    33 * The data file.
     
    2525#pragma data_seg("CODEANDDATA", "CODE")
    2626#endif
     27#ifdef __IBMC__
     28#pragma data_seg(CODEANDDATACODE32)
     29#endif
    2730char szMsg[19] = {"I'm really small!\n"};
    2831
Note: See TracChangeset for help on using the changeset viewer.