Welcome, Guest. Please login or register.

Author Topic: VBCC unstable?  (Read 2563 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline MeraxTopic starter

  • Newbie
  • *
  • Join Date: May 2007
  • Posts: 39
    • Show only replies by Merax
VBCC unstable?
« on: February 24, 2008, 08:31:13 AM »
I recently installed VBCC to start working on some Amiga software.   It seems to work fine the first time I use it.  After that it causes a guru crash and forces me to reboot to get another compile out of it.

Is this program just not very stable or did I maybe do something wrong installing it?

I have a stock Amiga 1200 except for a 4 MB RAM expansion.

If this is typical for vbcc, is there a more stable compiler that someone can recommend?  I tried gcc a bit but was unable to get it installed correctly.
Try out my iPhone/iPad game: http://www.hungryhelga.com
 

Offline Thomas

Re: VBCC unstable?
« Reply #1 on: February 24, 2008, 09:03:06 AM »

Increase stack size. I use VBCC for quite some time now and it has been completely stable. My stack size is 40000 bytes.

You can also try Dice C as an alternative for low-end machines.

Bye,
Thomas

Offline MeraxTopic starter

  • Newbie
  • *
  • Join Date: May 2007
  • Posts: 39
    • Show only replies by Merax
Re: VBCC unstable?
« Reply #2 on: February 24, 2008, 09:22:12 AM »
Wow, that seems to have fixed it...I can compile multiple times without crashing, thanks a bunch :).

Now that I can play around a bit, another question came up.

I tried doing some floating point math in my test program (I have no FPU, I figured it would be emulated) and I'm getting link errors for several symbols related to that(like __ieeemuld).  What lib do I need to link in to get floating point to work and what's the command line argument look like to do that?

Thanks again!
Try out my iPhone/iPad game: http://www.hungryhelga.com
 

Offline Thomas

Re: VBCC unstable?
« Reply #3 on: February 24, 2008, 10:21:21 AM »

-lmieee

Bye,
Thomas

Offline itix

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 2380
    • Show only replies by itix
Re: VBCC unstable?
« Reply #4 on: February 24, 2008, 10:25:14 AM »
Is that with the latest VBCC? Because if stack is set too low in VBCC it could be good idea notify developer (Frank Wille) about that.
My Amigas: A500, Mac Mini and PowerBook
 

Offline Trev

  • Zero
  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 1550
  • Country: 00
    • Show only replies by Trev
Re: VBCC unstable?
« Reply #5 on: February 24, 2008, 08:22:59 PM »
There's a note about stack size in section 1.3.3 of the manual <http://www.ibaug.de/vbcc/doc/vbcc.html>:

Quote
Also, the stack-size has to be increased from the default. 40KB is a sensible value, for very large projects higher values might be necessary.


Approximately the same size as recommended previously. As noted in the manual, your mileage may vary.
 

Offline MeraxTopic starter

  • Newbie
  • *
  • Join Date: May 2007
  • Posts: 39
    • Show only replies by Merax
Re: VBCC unstable?
« Reply #6 on: February 25, 2008, 07:17:31 AM »
I hope no one minds if I use this thread to post questions as I learn to set up my little programming environment :)

I downloaded the Amiga C Manual from here:  http://www.amigau.com/c-programming/C/ctut.htm
which comes with several simple programs.

I'm trying to compile the first example program in the ACM1/Windows/ directory and ran into two problems.

The first was that the compiler couldn't find the include .  I looked through the files that came with VBCC and found intuition.h in the m68k-amigaos/include/proto directory and tried including that instead.  Unfortunately, this header file tries to include exec/types.h, which doesn't seem to exist in the VBCC directories.

So, where can I get this file from and what else might I be missing?  I just want to get a nice working development environment here so I can learn Amiga graphics and windows programming :)

Thanks!

Try out my iPhone/iPad game: http://www.hungryhelga.com
 

Offline Thomas

Re: VBCC unstable?
« Reply #7 on: February 25, 2008, 08:33:29 AM »

Obviously you are missing the complete AmigaOS system includes. These have to be installed seperately and *before* VBCC is installed. During installation of VBCC's 68k target you are asked where the system include files are.

For example you can get the navive development kit (NDK) of OS 3.9 from http://www.haage-partner.de/download/AmigaOS/
If you unpack it to Work: the needed include files are in Work:NDK_3.9/include/include_h

Now that you already have installed VBCC, check your s:user-startup file. There should be a section which after correction of the include path should look like this:

;BEGIN vbcc-m68k-amigaos
assign >NIL: vincludeos3: vbcc:targets/m68k-amigaos/include
assign >NIL: vincludeos3: Work:NDK_3.9/Include/include_h add
assign >NIL: vlibos3: vbcc:targets/m68k-amigaos/lib
;END vbcc-m68k-amigaos

Bye,
Thomas
 
The following users thanked this post: jm4n

Offline MeraxTopic starter

  • Newbie
  • *
  • Join Date: May 2007
  • Posts: 39
    • Show only replies by Merax
Re: VBCC unstable?
« Reply #8 on: February 25, 2008, 08:39:06 AM »
Thanks again Thomas, I'm sure that's the problem.  I should have mentioned before that I'm using WB 3.1.  Do you know where I might be able to find the development kit for that version?
Try out my iPhone/iPad game: http://www.hungryhelga.com
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: VBCC unstable?
« Reply #9 on: February 25, 2008, 08:46:39 AM »
@Merax

Development kits work for all the earlier OS versions. You can use the AmigaOS 3.9 NDK.
 

Offline MeraxTopic starter

  • Newbie
  • *
  • Join Date: May 2007
  • Posts: 39
    • Show only replies by Merax
Re: VBCC unstable?
« Reply #10 on: February 25, 2008, 10:52:38 AM »
Thanks all, I am able to compile the examples now :)
Try out my iPhone/iPad game: http://www.hungryhelga.com