English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 13 February 2015, 13:34   #1
tolkien
AmigaMan

tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 686
Debugging vbcc code

Hi mates.
A simple question. Can bdebug, sasc debugger or stormc debugger use vbcc generated code?
I'm using StormC but Its so old that give too much errors.
One more. What stardard is suported with stormc? c89? C90?
Thanks!
tolkien is offline  
Old 13 February 2015, 19:57   #2
matthey
Banned
 
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
Quote:
Originally Posted by tolkien View Post
Hi mates.
A simple question. Can bdebug, sasc debugger or stormc debugger use vbcc generated code?
The new v0.9d version of vbcc will generate SAS/C style line debug with "vc -g" which is compatible with BDebug (from Barfly archive) and CPR (from SAS/C). The current C source line can be displayed in both with the proper settings and paths. I don't know which debug info Storm C v3 uses but Storm C v4 is probably incompatible as it uses GCC as the compiler and most likely STABS or DWARF for source debugging information. Symbols are still visible in BDebug when compiling with GCC using the STABS switch (-gstabs).

Quote:
Originally Posted by tolkien View Post
I'm using StormC but Its so old that give too much errors.
One more. What standard is supported with stormc? c89? C90?
Thanks!
I believe Storm C v4 is based on GCC 2.95.x which is a good version of GCC although it is dated (some modern GCC programs will not work). GCC has many POSIX and UNIX extensions which made it into later standards like C90 and C99. I would guess it is mostly compatible with C90 and some functions from C99 should work also. GCC is forgiving about standards by default which helps. Storm C v3 is hopelessly outdated and buggy. I don't recommend using it.
matthey is offline  
Old 13 February 2015, 20:26   #3
tolkien
AmigaMan

tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 686
Very good answer. Thanks Matthey!
Stormc 4 use gcc and Its own compiler. You can choose.
I like Its IDE but need a moderna compiler.
tolkien is offline  
Old 13 February 2015, 20:40   #4
tolkien
AmigaMan

tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 686
Another thing. Bdebug runs under winue? In my setup It crash!
tolkien is offline  
Old 14 February 2015, 05:51   #5
matthey
Banned
 
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
Quote:
Originally Posted by tolkien View Post
Very good answer. Thanks Matthey!
Stormc 4 use gcc and Its own compiler. You can choose.
I like Its IDE but need a moderna compiler.
I own Storm C v4 but I did not remember that the old v3 compiler could still be used, not that it is much of an advantage. It's been awhile since I messed with Storm C and my knowledge of compilers and C has greatly improved since then. There is custom code written which couples GCC to the Storm C IDE. They did some neat stuff but there is a bit too much abstraction and bloat for my taste. I should probably give it another try now though.

Quote:
Originally Posted by tolkien View Post
Another thing. Bdebug runs under winue? In my setup It crash!
A debugger like BDebug needs very good (accurate) emulation. I have never tried BDebug on UAE but it works on the 68060 which is the trickiest 68k CPU to support. I have never heard anyone complain that it doesn't work on a real Amiga either. Someone else may be able to answer this question better than me.
matthey is offline  
Old 14 February 2015, 06:45   #6
tolkien
AmigaMan

tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 686
Bdebug runs fine in my A1200 060. I'll try a better/acurate setup in winuae.
Thanks again mate.
tolkien is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
vbcc 0.9d phx News 43 13 July 2015 19:41
VBCC code generation Asman Coders. C/C++ 9 17 August 2014 09:33
Remote C/C++ debugging? alkis Coders. C/C++ 1 03 January 2014 12:17
Mixed 68k / PPC code on VBCC. Cowcat Coders. General 10 01 August 2013 16:01
Help debugging a faulty CD32 UberFreak support.Hardware 0 23 October 2009 03:29

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


All times are GMT +2. The time now is 15:51.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Page generated in 0.14033 seconds with 15 queries