Changeset 6533 for branches/mini/src
- Timestamp:
- Aug 15, 2001, 3:50:14 AM (24 years ago)
- Location:
- branches/mini/src/win32k/test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mini/src/win32k/test/minihll.c
r6532 r6533 1 1 #ifdef __IBMC__ 2 #pragma strings( readonly)2 #pragma strings(writeable) 3 3 #endif 4 4 5 /* 6 * Config 7 */ 5 8 //#define LIBC 6 9 10 11 12 /******************************************************************************* 13 * External Functions * 14 *******************************************************************************/ 7 15 #ifndef LIBC 8 9 #define INCL_DOSMISC 10 #include <os2.h> 11 /*unsigned long _System 12 DosPutMessage( 13 unsigned long hFile, 14 unsigned long cchMsg, 15 const char * pszMsg); 16 */ 16 unsigned long _System DosPutMessage(unsigned long hFile, 17 unsigned long cchMsg, 18 char * pszMsg); 17 19 #else 18 #include <stdio.h> 20 extern int _Optlink printf( char * pszMsg, ...); 19 21 #endif 20 22 21 #ifdef __IBMC__ 22 #pragma entry(entry) 23 /******************************************************************************* 24 * Global Variables * 25 *******************************************************************************/ 26 #ifdef __WATCOMC__ 27 #pragma data_seg("STACK32", "CODE") 28 #endif 29 char szMsg[19] = {"I'm really small!\n"}; 30 31 #ifdef __WATCOMC__ 32 #pragma data_seg("MYSTACK", "STACK") 33 int dummy; 23 34 #endif 24 35 36 37 #ifdef __IBMC__ 38 #pragma entry(minihll) 39 #endif 25 40 26 41 … … 28 43 * Main entry potin etc. 29 44 */ 30 void entry(void)45 void _Optlink minihll(void) 31 46 { 32 DosPutMessage(0, 18, "I'm really small!\r"); 47 #ifndef LIBC 48 DosPutMessage(0, 18, szMsg); 49 #else 50 printf(szMsg); 51 #endif 33 52 } 53 54 -
branches/mini/src/win32k/test/minihll.def
r6532 r6533 1 ; $Id: minihll.def,v 1.1.2. 1 2001-08-14 22:56:04bird Exp $1 ; $Id: minihll.def,v 1.1.2.2 2001-08-15 01:50:13 bird Exp $ 2 2 NAME '' 3 3 … … 8 8 'CODE32' CLASS 'CODE' SHARED EXECUTEREAD 9 9 'CONST32_RO' CLASS 'CODE' SHARED EXECUTEREAD 10 'CODEDATA32' CLASS 'CODE' SHARED EXECUTEREAD 10 11 12 IMPORTS 13 printf = LIBCN.1082 11 14 -
branches/mini/src/win32k/test/minihll.mak
r6532 r6533 1 # $Id: minihll.mak,v 1.1.2. 1 2001-08-14 22:56:05bird Exp $1 # $Id: minihll.mak,v 1.1.2.2 2001-08-15 01:50:14 bird Exp $ 2 2 3 3 # … … 24 24 # Tools and Flags Addjustments. 25 25 # 26 !ifndef WAT 26 27 LD2FLAGS = $(LD2FLAGS) /BASE:0x10000 /Stack:0x1000 28 !endif 29 !ifdef WAT 30 CFLAGS += /Os -s /NTSTACK32 31 !endif 27 32 28 33 … … 51 56 # 52 57 $(OBJDIR)\$(TARGET).exe: $(OBJS) $(DEFFILE) $(OBJDIR)\$(TARGET).lrf 58 !ifndef WAT 53 59 -8 $(LD2) /FORCE $(LD2FLAGS) /BASE:0x10000 /PACKCODE /PACKDATA /NOEXEPACK \ 54 60 /ALIGNMENT:1 @$(OBJDIR)\$(TARGET).lrf 61 !else 62 wlink system os2v2 file {$(OBJS)} name $(OBJDIR)\.exe \ 63 import printf LIBCN.1082 \ 64 import DosPutMessage MSG.5 \ 65 # segment{'STACK32' READWRITE} \ 66 # segment{'MYSTACK' CLASS 'STACK' READWRITE} \ 67 option offset=0x10000 option alignment=1 option stack=4060 option start=minihll \ 68 option map=$(OBJDIR)\$(TARGET).map 69 mv $(OBJDIR)\.exe $@ 70 !endif 55 71 $(LXLITE) /AN:1 /ZS:1024 /ZX:1024 /MF3 /YXD /YND $@ 56 72 … … 59 75 60 76 77 61 78 # 62 79 # Exe: Linker file - creates the parameter file passed on to the linker. 63 80 # 81 !ifndef WAT 64 82 $(OBJDIR)\$(TARGET).lrf: makefile 65 83 @echo Creating file <<$@ … … 73 91 <<keep 74 92 93 !else 94 $(OBJDIR)\$(TARGET).lrf: makefile 95 echo $@ 96 !endif 75 97 76 98 77 99 100
Note:
See TracChangeset
for help on using the changeset viewer.