delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/14/19:32:26

From: Leath Muller <leathm AT gbrmpa DOT gov DOT au>
Message-Id: <199607142323.JAA02995@gbrmpa.gov.au>
Subject: Re: how did you compile and link it
To: leathm AT gbrmpa DOT gov DOT au (Leath Muller)
Date: Mon, 15 Jul 1996 09:23:27 +1000 (EST)
Cc: djgpp AT delorie DOT com
In-Reply-To: <199607112336.JAA29094@gbrmpa.gov.au> from "Leath Muller" at Jul 12, 96 09:36:15 am

> > Could you post the compile and link tricks you used to get a DOS executable
> > down to 38k? Thanks
  
> Gee, some people really worry about this dont they... :) 
 
> Sure, I will get my stuff uploaded from home this afternoon and post it...
> Then I can get lots of flack on my programming... ;)

Ok, here is the makefile that I use...it should give about the same code
size - even for a simple hello world... :) 

all: vbe.exe

vbe.exe : vbe.o
	gcc -s vbe.o -o vbe.exe

vbe.o : vbe.c
	gcc -m486 -c -O2 -g -Wall vbe.c

clean :
	del *.o
	del *.exe

Leathal.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019