English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 13 April 2016, 22:40   #1
wk_end
 
Posts: n/a
Source Debugging + Linker?

Lately I've been working on an intuition-based program in asm (please don't try to talk me out of this ) and it's starting to get too big for one module, so I'd like to start splitting it out into multiple files.

Right now my assembler of choice is ASM-One 1.02+ - it's simple and just works, and I love the source level debugging. I know that I'll need some kind of linker (vlink? blink?) to link my modules together...if I do this, is there any way to load the final executable into ASM-One's debugger? If not, is there another debugger I could load my labels into and use?
 
Old 14 April 2016, 13:36   #2
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
Quote:
Originally Posted by wk_end View Post
Right now my assembler of choice is ASM-One 1.02+ - it's simple and just works, and I love the source level debugging. I know that I'll need some kind of linker (vlink? blink?) to link my modules together...
Any AmigaDOS linker will do, as long as your Asm-One version generates legal hunk-format object files.
I remember I had a look at Asm-Pro some time ago, which neither included exported symbols nor any debugging symbols in the output generated by "WL".

Quote:
if I do this, is there any way to load the final executable into ASM-One's debugger?
Not sure. Anybody more familiar with Asm-One may correct me.
I would guess it only works to load a binary into memory and debug it there without any symbol information...?

Quote:
If not, is there another debugger I could load my labels into and use?
There are plenty of debuggers for the Amiga. I would suggest BDebug from the Barfly assembler package, which is programmed OS-friendly and supports all CPUs up to 68060.

All debuggers can read symbol hunks. And many of them also understand the source line debugging format (LINE Debug hunks) introduced by SAS/C, which allows you to show lines of your original source text.
phx is offline  
Old 20 April 2016, 23:33   #3
wk_end
 
Posts: n/a
Quote:
Originally Posted by phx View Post
Any AmigaDOS linker will do, as long as your Asm-One version generates legal hunk-format object files.
I remember I had a look at Asm-Pro some time ago, which neither included exported symbols nor any debugging symbols in the output generated by "WL".
If Asm-Pro can't do it, I suspect Asm-One 1.02+ can't do either...

Quote:
Originally Posted by phx View Post
Not sure. Anybody more familiar with Asm-One may correct me.
I would guess it only works to load a binary into memory and debug it there without any symbol information...?
You can debug the source (with symbols) of the currently assembled program, but it seems really dumb. It's not even capable of jumping across INCSRCs (and seems to crash the program when it tries).

Quote:
Originally Posted by phx View Post
There are plenty of debuggers for the Amiga. I would suggest BDebug from the Barfly assembler package, which is programmed OS-friendly and supports all CPUs up to 68060.

All debuggers can read symbol hunks. And many of them also understand the source line debugging format (LINE Debug hunks) introduced by SAS/C, which allows you to show lines of your original source text.
Good to know that I have some options

Any thoughts on devpac vs barfly? I prefer the integrated environment, and I'm loosely trying to stick with tools pros would've been using early 90s; it looks like devpac was just about the de facto standard then.
 
Old 21 April 2016, 13:40   #4
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
Quote:
Originally Posted by wk_end View Post
You can debug the source (with symbols) of the currently assembled program, but it seems really dumb. It's not even capable of jumping across INCSRCs (and seems to crash the program when it tries).
Then the answer is certainly no. AsmOne cannot debug executables with debug information in it. Which seems logical, as it cannot even write such files...

Quote:
Any thoughts on devpac vs barfly? I prefer the integrated environment
Devpac has a nice integrated environment, but it is very slow. Barfly is a fast assembler, but has some non-standard directives.

Quote:
it looks like devpac was just about the de facto standard then.
Absolutely, it is. When trying to write the most portable assembler source, then you should look up the directives from the Devpac manual.
phx 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
Linker Aztek C 3.6 Malban support.Apps 7 04 January 2016 14:27
Debugging vbcc code tolkien Coders. C/C++ 5 14 February 2015 06:45
gcc linker mritter0 Coders. C/C++ 3 21 December 2014 16:54
Linker to use with AsmOne (68000) nandius_c Coders. Asm / Hardware 10 10 December 2014 11:53
Remote C/C++ debugging? alkis Coders. C/C++ 1 03 January 2014 12:17

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 06:06.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06977 seconds with 13 queries