English Amiga Board

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

Thread Tools
Old 20 March 2020, 12:39   #1
Registered User

Join Date: Jul 2015
Location: The Netherlands
Posts: 1,710
Using object files across different linkers?

I have a small question about object files as created by Amiga assemblers (or compilers). Are these "cross-linker" compatible?
As in: can I make an object file with say, ASM-One or PHXAss (or compilers like DICE C) and then link it using say the SAS linker, or VLINK?

Or are object files not generic but assembler/linker specific?
roondar is offline  
Old 21 March 2020, 02:37   #2

phx's Avatar
Join Date: Nov 2009
Location: Herford / Germany
Posts: 1,598
Yes, usually they are compatible. Unlike the Atari ST, the Amiga's object file format was well defined and documented by Commodore. Refer to dos/doshunks.h. It uses similar hunk-format structures as executables to represent all sections, symbols, external references and relocations.
Debugging information may be tool-specific, but the structure of HUNK_DEBUG allows you to easily skip unsupported blocks. The SAS/C LINE debug hunk is widely supported, for example.

I remember only few development tools which generate incompatible object files. For example Aztec-C and some sloppy gcc ports.

Best description of Amiga hunk-format object files can be found in Ralph Babel's Amiga Guru Book.

Last edited by phx; 21 March 2020 at 02:52. Reason: Mention Line Debug
phx is offline  
Old 21 March 2020, 12:57   #3
Registered User

Join Date: Jul 2015
Location: The Netherlands
Posts: 1,710
Thanks for the info, that is very useful to know
roondar 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
Structure of CopList object? earok Coders. Blitz Basic 10 22 June 2019 06:37
Export object files from Backbone to AMOS? amiman99 Coders. AMOS 4 10 June 2016 23:45
Object not found Brick Nash support.WinUAE 5 22 March 2015 18:13
Object width mritter0 Coders. C/C++ 2 20 September 2014 00:06
Lightwave Object Request Steve request.Apps 8 24 November 2006 02:48

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 10:58.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Page generated in 0.05853 seconds with 14 queries