amiga.org
     
iconAll times are GMT -6. The time now is 11:51 AM. | Welcome to Forum, please register to access all of our features.

» Amiga.org » Operating System Specific Discussions » Amiga OS » Amiga OS -- Development » VBCC unstable?

Amiga OS -- Development This particular forum deals with issues regarding development for all versions of AmigaOS.

Reply
 
Thread Tools Display Modes
Old 02-24-2008, 01:31 AM   #1
Merax
Beginner
Points: 4,084, Level: 40 Points: 4,084, Level: 40 Points: 4,084, Level: 40
Activity: 2% Activity: 2% Activity: 2%
 
Join Date: May 2007
Location: San Diego
Posts: 39
Default VBCC unstable?

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.
Merax is offline   Reply With Quote
Old 02-24-2008, 02:03 AM   #2
Thomas
Kindred of Babble-on
Points: 14,028, Level: 76 Points: 14,028, Level: 76 Points: 14,028, Level: 76
Activity: 15% Activity: 15% Activity: 15%
 
Thomas's Avatar
 
Join Date: Jun 2002
Posts: 2,936
Default Re: VBCC unstable?


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
__________________
Email: thomas-rapp@web.de
Home: thomas-rapp.homepage.t-online.de/
Thomas is offline   Reply With Quote
Old 02-24-2008, 02:22 AM   #3
Merax
Beginner
Points: 4,084, Level: 40 Points: 4,084, Level: 40 Points: 4,084, Level: 40
Activity: 2% Activity: 2% Activity: 2%
 
Join Date: May 2007
Location: San Diego
Posts: 39
Default Re: VBCC unstable?

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!
Merax is offline   Reply With Quote
Old 02-24-2008, 03:21 AM   #4
Thomas
Kindred of Babble-on
Points: 14,028, Level: 76 Points: 14,028, Level: 76 Points: 14,028, Level: 76
Activity: 15% Activity: 15% Activity: 15%
 
Thomas's Avatar
 
Join Date: Jun 2002
Posts: 2,936
Default Re: VBCC unstable?


-lmieee

Bye,
Thomas
__________________
Email: thomas-rapp@web.de
Home: thomas-rapp.homepage.t-online.de/
Thomas is offline   Reply With Quote
Old 02-24-2008, 03:25 AM   #5
itix
Defender of the Faith
Points: 11,791, Level: 71 Points: 11,791, Level: 71 Points: 11,791, Level: 71
Activity: 2% Activity: 2% Activity: 2%
 
itix's Avatar
 
Join Date: Oct 2002
Posts: 1,876
Default Re: VBCC unstable?

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.
__________________
Only MorphOS makes it possible \o_
itix is offline   Reply With Quote
Old 02-24-2008, 01:22 PM   #6
Trev
Slacker
Points: 11,230, Level: 69 Points: 11,230, Level: 69 Points: 11,230, Level: 69
Activity: 2% Activity: 2% Activity: 2%
 
Trev's Avatar
 
Join Date: May 2003
Location: San Francisco, California, US
Posts: 1,514
Default Re: VBCC unstable?

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.
__________________
Sam440ep-flex 733 MHz/1 GB RAM/Radeon 9250/AmigaOS4.1 Update 2
borked A1200/Blizzard1260+SCSI-IV/Z4+MediatorZIV/Deneb/Voodoo3/CatweaselMk3
more borked A1200/MBX1200z/Indivision
A500/clockport/RRNet
A600/A603
Power Mac G4 QuickSilver/MorphOS 2.6
Trev is offline   Reply With Quote
Old 02-25-2008, 12:17 AM   #7
Merax
Beginner
Points: 4,084, Level: 40 Points: 4,084, Level: 40 Points: 4,084, Level: 40
Activity: 2% Activity: 2% Activity: 2%
 
Join Date: May 2007
Location: San Diego
Posts: 39
Default Re: VBCC unstable?

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 <intuition/intuition.h>. 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!

Merax is offline   Reply With Quote
Old 02-25-2008, 01:33 AM   #8
Thomas
Kindred of Babble-on
Points: 14,028, Level: 76 Points: 14,028, Level: 76 Points: 14,028, Level: 76
Activity: 15% Activity: 15% Activity: 15%
 
Thomas's Avatar
 
Join Date: Jun 2002
Posts: 2,936
Default Re: VBCC unstable?


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
__________________
Email: thomas-rapp@web.de
Home: thomas-rapp.homepage.t-online.de/
Thomas is offline   Reply With Quote
Old 02-25-2008, 01:39 AM   #9
Merax
Beginner
Points: 4,084, Level: 40 Points: 4,084, Level: 40 Points: 4,084, Level: 40
Activity: 2% Activity: 2% Activity: 2%
 
Join Date: May 2007
Location: San Diego
Posts: 39
Default Re: VBCC unstable?

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?
Merax is offline   Reply With Quote
Old 02-25-2008, 01:46 AM   #10
Piru
' union select name,pwd--
Points: 30,457, Level: 100 Points: 30,457, Level: 100 Points: 30,457, Level: 100
Activity: 69% Activity: 69% Activity: 69%
 
Piru's Avatar
 
Join Date: Aug 2002
Location: Helsinki, Finland
Posts: 6,946
Default Re: VBCC unstable?

@Merax

Development kits work for all the earlier OS versions. You can use the AmigaOS 3.9 NDK.
Piru is offline   Reply With Quote
Old 02-25-2008, 03:52 AM   #11
Merax
Beginner
Points: 4,084, Level: 40 Points: 4,084, Level: 40 Points: 4,084, Level: 40
Activity: 2% Activity: 2% Activity: 2%
 
Join Date: May 2007
Location: San Diego
Posts: 39
Default Re: VBCC unstable?

Thanks all, I am able to compile the examples now
Merax is offline   Reply With Quote
Reply

Bookmarks

Tags
unstable , vbcc

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
G-Rex + Voodoo3 + (Heat?) = Very unstable? arnljot Amiga Hardware Issues and discussion 10 05-23-2009 06:01 PM
DENEB in -> ahi.device unstable??? amiwalker Amiga Software Issues and Discussion 6 06-05-2008 07:29 AM
STFax very unstable :( AmigaMance Amiga Software Issues and Discussion 10 12-24-2007 01:24 PM
My very unstable amiga Gav Amiga Hardware Issues and discussion 16 10-08-2007 12:30 AM
PPC very unstable awe4k Amiga Software Issues and Discussion 10 01-08-2005 11:52 AM