Article View: comp.sources.atari.st
Article #364v01i017: Dummy routines for shrinking Megamax executables
From: Steven Grimm
Date: Sun, 24 Apr 1988 17:45
Date: Sun, 24 Apr 1988 17:45
34 lines
1271 bytes
1271 bytes
Submitted-by: braner@tcgould.tn.cornell.edu (Moshe Braner)
Posting-number: Volume 1, Issue 17
Archive-name: mmdummy
/*
* MMDUMMY
*
* This file defines as stubs the functions Megamax (1.1) insists on
* linking to all programs. If your program does not use UNIX-like
* I/O, but rather calls GEMDOS, BIOS, XBIOS routines, then linking
* to this file (compiled) will cut the size of the executable file.
* For example, the program "main(){Cconws("Hello, world!\r\n");}"
* compiles into 410 bytes instead of 1810. First type "mmcc mmdummy.c".
* Save mmdummy.o. Later type: "mmlink myprog.o mmdummy.o".
*
* - by Moshe Braner, 871212
*/
#include <osbind.h>
open(){}
lseek(){}
fgetc(){}
ungetc(){}
getw(){}
fputc(){}
putw(){}
write(){}
fflush(){}
fclose(){}
close(){}
_exit(n) int n; { Pterm(n); }
exit(n) int n; { _exit(n); }
Technical Details
Message-ID:
<2987@saturn.ucsc.edu>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pasteur!agate!saturn!ssyx!korethShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pasteur!agate!saturn!ssyx!koreth From: koreth@ssyx.ucsc.edu (Steven Grimm) Newsgroups: comp.sources.atari.st Subject: v01i017: Dummy routines for shrinking Megamax executables Message-ID: <2987@saturn.ucsc.edu> Date: 24 Apr 88 17:45:16 GMT Sender: usenet@saturn.ucsc.edu Lines: 33 Keywords: Megamax Approved: koreth@ssyx.ucsc.edu