Mail Archives: djgpp/2000/07/10/22:57:06
| Message-ID:  | <20000711025659.21146.qmail@hotmail.com>
 | 
| X-Originating-IP:  | [200.45.90.195]
 | 
| From:  | "Norberto Alfredo Bensa" <nbensa AT hotmail DOT com>
 | 
| To:  | <djgpp AT delorie DOT com>
 | 
| Subject:  | Quake srcs - memory problems
 | 
| Date:  | Mon, 10 Jul 2000 23:43:17 -0300
 | 
| Organization:  | nBens@ Computers
 | 
| MIME-Version:  | 1.0
 | 
| X-Priority:  | 3
 | 
| X-MSMail-Priority:  | Normal
 | 
| X-Mailer:  | Microsoft Outlook Express 5.50.4029.2901
 | 
| X-MimeOLE:  | Produced By Microsoft MimeOLE V5.50.4029.2901
 | 
| Reply-To:  | djgpp AT delorie DOT com
 | 
This is a multi-part message in MIME format.
------=_NextPart_000_005C_01BFEAC8.9F7580A0
Content-Type: text/plain;
	charset="Windows-1252"
Content-Transfer-Encoding: 7bit
Can someone please confirm if the following change fixes the memory problem
in quake? (it seams to be fixed here, but I've fixed it sooooo many times
now that I can't believe it's gone...)
add this to sys_dos.c and rebuiild, then run quake from windows 9x, i.e.
quake <enter> (no -mem please) I've included my makefile too...
#include <crt0.h>
int _crt0_startup_flags = _CRT0_FLAG_UNIX_SBRK;
Regards,
Norberto
------=_NextPart_000_005C_01BFEAC8.9F7580A0
Content-Type: application/octet-stream;
	name="makefile."
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="makefile."
CC=gcc
CFLAGS=-O9 -march=i586 -Wall -fomit-frame-pointer -ffast-math
LDFLAGS=
LIBS=-lm
ifdef DEBUG
	CFLAGS+=-gstabs+3 -O0 -fno-omit-frame-pointer -fno-fast-math
else
	CFLAGS+=-DNDEBUG
	LDFLAGS+=-s
endif
PRG=quake.exe
all:    $(PRG)
%.o : %.c
	@echo Compiling $<
	@$(CC) $(CFLAGS) -c $<
%.o : %.s
	@echo Assembling $<
	@$(CC) $(CFLAGS) -x assembler-with-cpp -c $<
NET= \
	net_bw.o \
	net_dgrm.o \
	net_dos.o \
	net_ipx.o \
	net_loop.o \
	net_main.o \
	net_mp.o \
	net_ser.o \
	net_vcr.o
RENDER= \
	r_aclip.o \
	r_aclipa.o \
	r_alias.o \
	r_aliasa.o \
	r_bsp.o \
	r_draw.o \
	r_drawa.o \
	r_edge.o \
	r_edgea.o \
	r_light.o \
	r_efrag.o \
	r_main.o \
	r_misc.o \
	r_part.o \
	r_sky.o \
	r_sprite.o \
	r_surf.o \
	r_vars.o \
	r_varsa.o
DRAW= \
	d_copy.o \
	d_draw.o \
	d_draw16.o \
	d_edge.o \
	d_fill.o \
	d_init.o \
	d_modech.o \
	d_part.o \
	d_polyse.o \
	d_zpoint.o \
	d_polysa.o \
	d_parta.o \
	d_scan.o \
	d_scana.o \
	d_sky.o \
	d_spr8.o \
	d_sprite.o \
	d_surf.o \
	d_vars.o \
	d_varsa.o 
CLIENT= \
	cl_demo.o \
	cl_input.o \
	cl_main.o \
	cl_parse.o \
	cl_tent.o
SERVER= \
	sv_main.o \
	sv_move.o \
 	sv_phys.o \
	sv_user.o
SOUND= \
	snd_dos.o \
	snd_dma.o \
	snd_gus.o \
	snd_mem.o \
	snd_mix.o \
	snd_mixa.o 
VIDEO= \
	vid_vga.o \
	vid_ext.o \
	vid_dos.o
SYSTEM= \
	sys_dos.o \
	sys_dosa.o
PROGRAMS= \
	pr_cmds.o \
	pr_edict.o \
	pr_exec.o
OBJS= \
	$(CLIENT) \
	$(DRAW) \
	$(NET) \
	$(PROGRAMS) \
	$(RENDER) \
	$(SERVER) \
	$(SOUND) \
	$(SYSTEM) \
	$(VIDEO) \
	cd_audio.o \
	chase.o \
	cmd.o \
	common.o \
	console.o \
	crc.o \
	cvar.o \
	dos_v2.o \
	draw.o \
	host.o \
	host_cmd.o \
	in_dos.o \
	keys.o \
	math.o \
	mathlib.o \
	menu.o \
	model.o \
	mplib.o \
	mplpc.o \
	nonintel.o \
	sbar.o \
	screen.o \
	surf8.o \
	surf16.o \
	view.o \
	vregset.o \
	wad.o \
	world.o \
	worlda.o \
	zone.o 
$(PRG) : $(OBJS)
	$(CC) $(LDFLAGS) $(OBJS) -o $(PRG) $(LIBS)
clean:
	rm -f *.o $(PRG)
------=_NextPart_000_005C_01BFEAC8.9F7580A0--
- Raw text -