English Amiga Board

English Amiga Board (http://eab.abime.net/index.php)
-   Coders. C/C++ (http://eab.abime.net/forumdisplay.php?f=118)
-   -   Debugging vbcc code (http://eab.abime.net/showthread.php?t=77020)

tolkien 13 February 2015 13:34

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!

matthey 13 February 2015 19:57

Quote:

Originally Posted by tolkien (Post 1003641)
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 (Post 1003641)
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.

tolkien 13 February 2015 20:26

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 13 February 2015 20:40

Another thing. Bdebug runs under winue? In my setup It crash!

matthey 14 February 2015 05:51

Quote:

Originally Posted by tolkien (Post 1003717)
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 (Post 1003719)
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.

tolkien 14 February 2015 06:45

Bdebug runs fine in my A1200 060. I'll try a better/acurate setup in winuae.
Thanks again mate.


All times are GMT +2. The time now is 16:25.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.

Page generated in 0.04491 seconds with 11 queries