|
Register or have you forgotten your password?
|
|
|
| Amiga OS -- Development This particular forum deals with issues regarding development for all versions of AmigaOS. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | ||||||||
|
Kindred of Babble-on
![]()
Join Date: Feb 2002
Posts: 2,786
|
Been fiddling with my vanilla A1200 this weekend and found that a low stack size caused an identifier expected error in VBCC. I already had the stack higher than default but it wasn't enouph. The error disappeared when I raised the stack even more!!! I know behaviour is a bit unpredictable with stack overflow but I was hoping for a crash or something else not that error. Well actually it did crash once in a while.
__________________
\"We made Amiga, they {bleep}ed it up\" |
||||||||
|
|
|
|
|
#2 | ||||||||
|
Technoid
![]()
Join Date: Nov 2002
Posts: 220
|
So what amount of stack did you use?
|
||||||||
|
|
|
|
|
#3 | |||||||||
|
Kindred of Babble-on
![]()
Join Date: Jun 2002
Posts: 2,936
|
Quote:
Sounds like you are a bit too cautious. I've installed StackAttack with a minimum stack size of 40,000 for all programs. For development I usually use 100,000 bytes or more. Be assured that VBCC needs much fewer stack than GCC for example. Bye, Thomas |
|||||||||
|
|
|
|
|
#4 | ||||||||
|
Kindred of Babble-on
![]()
Join Date: Feb 2002
Posts: 2,786
|
@Dietmar
Mostly 10000 [edit]bytes. It was recommended on the VBCC docs for not very big projects (latest VBCC version recommends 40KB, but I was using a previous version). I got that error with a single function of around 250 lines I tried to compile separetely. Needless to say the whole program (around 50KB source) would never compile with that stack specially with 2MB chip ram only
__________________
\"We made Amiga, they {bleep}ed it up\" |
||||||||
|
|
|
|
|
#5 | ||||||||
|
Kindred of Babble-on
![]()
Join Date: Feb 2002
Posts: 2,786
|
@Thomas
"Sounds like you are a bit too cautious." I had to, I was getting out of memory, so started booting without startup sequence, running a script to make the VBCC assigns and then using the commnad line to compile, to have more spare chip ram. It worked :-)
__________________
\"We made Amiga, they {bleep}ed it up\" |
||||||||
|
|
|
![]() |
| Bookmarks |
| Tags |
| found , vbcc , compiler , errors , size , stack , beware |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Altering the stack size for a Process | Karlos | Amiga OS -- Development | 4 | 04-01-2007 02:59 PM |
| lame question about stack size. | kas1e | Amiga Software Issues and Discussion | 1 | 10-06-2005 08:37 PM |
| VBCC: size of incomplete type not available / linker | Jose | Amiga OS -- Development | 5 | 04-15-2005 10:56 AM |
| Arghh.. getting errors in the jpeg.library includes with VBCC | Jose | Amiga OS -- Development | 13 | 09-17-2004 03:35 PM |
| Stack-size of "Run" programs. | benJamin | Amiga Software Issues and Discussion | 0 | 04-16-2003 05:21 AM |