www.virtualacorn.co.uk/forum

For support and advice on VirtualAcorn products
Forums now closed. This is an HTML only record of the content.
HTML version of Forum generated Thursday 24th May 2018

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: GCC 4.1 + ADFS = Crashed VRPC
PostPosted: Mon Jan 26, 2009 11:20 pm 
Offline

Joined: Tue Jul 26, 2005 5:36 pm
Posts: 108
Hi,

Has anyone tried using GCC with it present on an ADFS image within VRPC? Here it crashes the emulator, which in turn trashes the ADFS image. :?

Thanks,
Adam

P.S. Sorry, I posted this in the "programming" forum too, but got no responce so am trying here.


Top
 Profile  
 
 Post subject: Re: GCC 4.1 + ADFS = Crashed VRPC
PostPosted: Thu Feb 12, 2009 9:39 pm 
Offline

Joined: Wed Oct 23, 2002 10:37 pm
Posts: 64
Can you give me an idea of exactly what you did to cause the crash?

Thanks,
Graeme


Top
 Profile  
 
 Post subject: Re: GCC 4.1 + ADFS = Crashed VRPC
PostPosted: Sat Feb 14, 2009 7:30 pm 
Offline

Joined: Tue Jul 26, 2005 5:36 pm
Posts: 108
Graeme wrote:
Can you give me an idea of exactly what you did to cause the crash?

Yep.
1) I put !GCC (3.4.6R3) on my ADFS image & double-click it
2) create a test program called test/c:
Code:
#include <stdio.h>
void main(void)
{
  printf("Hello world\n");
}

3) set the CSD to the directory with the program and type gcc test.c from a task window.
4) The (virtual) machine hangs. Alt-break has no effect. Alt-enter gets me back to Windows, but choosing any of the options from "Action" menu causes it to crash and a Windows "this program has crashed" window to pop up.
5) Sometimes the ADFS image is broken and has to be fixed by DiscKnight next time I run VRPC

Everything works fine if it's on a HostFS drive.

Thanks a lot,
Adam


Top
 Profile  
 
 Post subject: Re: GCC 4.1 + ADFS = Crashed VRPC
PostPosted: Sun Feb 15, 2009 12:10 pm 
Offline

Joined: Wed Oct 23, 2002 10:37 pm
Posts: 64
OK, it's not actually crashing, just making the emulator run unusably slow (ignoring the use of the Action menu items for now).

I've forwarded a fix to Aaron for distribution to beta testers. If you want to test it, please contact him via info@virtualacorn.co.uk. Note that IDE support is only present to support some older apps that assume/require the presence of an ADFS disk; I strongly suggest you stick to using a HostFS mount.

Graeme


Top
 Profile  
 
 Post subject: Re: GCC 4.1 + ADFS = Crashed VRPC
PostPosted: Mon Feb 16, 2009 8:57 pm 
Offline

Joined: Tue Jul 26, 2005 5:36 pm
Posts: 108
Thanks Graeme.

Unfortunately it's not possible to use HostFS for all tasks. In particular I use SVN a lot:
viewtopic.phpf=10&t=323

Adam


Top
 Profile  
 
 Post subject: Re: GCC 4.1 + ADFS = Crashed VRPC
PostPosted: Tue Feb 17, 2009 10:06 am 
Offline
Site Admin

Joined: Wed Oct 23, 2002 12:16 pm
Posts: 958
Further to thr above, Graeme has come up woth something else that might help.

Check the state of ADFSBuffers. It may be set to 255, setting it to zero might improve matters.

Press F12
Type: *st.
To see the status (press Shift to scroll if the output stops)
Check the state of ADFSBuffers. If not zero then:
Type : *configure ADFSBuffers 0
Then press return twice to retunt to the desktop.

Now try again, are you having the same problems?


Top
 Profile  
 
 Post subject: Re: GCC 4.1 + ADFS = Crashed VRPC
PostPosted: Thu Feb 26, 2009 9:13 pm 
Offline

Joined: Tue Jul 26, 2005 5:36 pm
Posts: 108
Hi, I set adfsbuffers to 0 and the problem has gone away.

Should I keep it at 0? What other effects will that have?

Thanks,
Adam


Top
 Profile  
 
 Post subject: Re: GCC 4.1 + ADFS = Crashed VRPC
PostPosted: Fri Feb 27, 2009 10:47 am 
Offline
Site Admin

Joined: Wed Oct 23, 2002 12:16 pm
Posts: 958
Yes, keep the buffers set to zero. This will slow down ADFS a bit, but I doubt you will notice.

We are looking at a "better" solution to this problem.


Top
 Profile  
 
 
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

   
Forums originally Powered by phpBB © 2007 phpBB Group. Contents © 3QD Developments Ltd 2018 version no. 1.07