Welcome, Guest. Please login or register.

Author Topic: VBCC crashing after error messages...  (Read 937 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2869
    • Show only replies by Jose
VBCC crashing after error messages...
« on: August 31, 2004, 09:51:17 PM »
I had it print the errors then allways crash.
Now that it only crashes I think I don't have any error left on the code...

Anyway I'm using a plain A1200 with 2MB chip ram and a 20Gb hd with 3 partitions. My A4000 is in pieces waiting for a Verax fan that never seems to arrive at the post...

The docs don't mention if any fast ram is needed but I assume that could be the problem  :-?
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16867
  • Country: gb
  • Thanked: 4 times
    • Show only replies by Karlos
Re: VBCC crashing after error messages...
« Reply #1 on: August 31, 2004, 09:59:43 PM »
@Jose

Any moderately large program needs a considerable amount of memory to compile, especially if optimizing is enabled.

For instance, one of my ongoing projects when compiled with stormC4 in gcc mode can get through 40MB of memory during a full build.

int p; // A
 

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2869
    • Show only replies by Jose
Re: VBCC crashing after error messages...
« Reply #2 on: August 31, 2004, 10:05:14 PM »
@Karlos

Yes I know, but this was only the init part of the program. VERY small...
Besides, the VBCC docs say one should be able to compile very small code with 1MB 8-)
But they could be talking about 1MB fast ram...
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16867
  • Country: gb
  • Thanked: 4 times
    • Show only replies by Karlos
Re: VBCC crashing after error messages...
« Reply #3 on: August 31, 2004, 10:10:54 PM »
Perhaps if they allocate MEMF_FAST rather than MEMF_PUBLIC.

A well behaved program should handle memory exhaustion cleanly, however.

I've never had vbcc crash - I had some strange warnings from it ( :-D ) but never an outright crash.
int p; // A
 

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2869
    • Show only replies by Jose
Re: VBCC crashing after error messages...
« Reply #4 on: September 01, 2004, 01:25:26 AM »
"I've never had vbcc crash ..."

Just use the default stack size and you'll have :-)
\\"We made Amiga, they {bleep}ed it up\\"