Path: chuka.playstation.co.uk!chuka.playstation.co.uk!chuka.playstation.co.uk!not-for-mail From: Lewis_Evans@Playstation.sony.com Newsgroups: scea.yaroze.freetalk Subject: Codewarrior works, GNU doesn't Date: 16 Mar 1998 11:18:49 -0000 Organization: Sony Computer Entertainment Europe - 119.SS5 Lines: 45 Sender: news@chuka.playstation.co.uk Message-ID: <6ej1qp$ber1@emeka.playstation.co.uk> Reply-To: Lewis_Evans@Playstation.sony.com NNTP-Posting-Host: emeka.playstation.co.uk by mail2.fw-sj.sony.com (8.8.8/8.8.8) with ESMTP id DAA17151 for ; Mon, 16 Mar 1998 03:23:34 -0800 (PST) From: Lewis_Evans@Playstation.sony.com To: news@playstation.co.uk Do you keep siocons active and connected while the program runs? (Without this programs will freeze since the Yaroze seems to wait for printfs to appear on siocons monitor) Are the globals all externed properly? Are you sure the new program space required by the globals doesn't conflict with the data around the program (eg TIM files), you can use mapfiles (GNU will generate these, see makefile options and sample code) to see exactly how much space the executable uses up. Do you put the program stack onto the D-cache scratchpad? Does the program freeze and never recover? Can you pinpoint at what point of the program it crashes, using printfs or the debugger (eg is it when calling a library function?) Lewis PS why did you want to cut down on the number of parameters to functions? I recently finished the first cut of the game I've been working on. I did the programming using codewarrior and wanted to generate a version using GNU. While the program compiles ok, when I run it I'm having all sorts of problems mostly with my program freezing up for no apparent reason. I believe the problem to be with my use of global variables that are shared between the different C files. In order to cut down on function parameters I made a bunch of my variables global. When I change these to be passed parameters the program seems to work correctly. The problem is I have a lot of global variables and I don't want to change all of them since this works in codewarrior. Anyone else run into a similar problem or have an idea as to what's wrong?