Welcome, Guest. Please login or register.
Amiga Kit Amiga Store Iridium Banner AMIStore App Store A1200/A600 4xIDE Interface

AuthorTopic: fd2inline and hunk2aout  (Read 760 times)

0 Members and 1 Guest are viewing this topic.

Offline MskoDestny

fd2inline and hunk2aout
« on: March 17, 2005, 03:51:51 PM »
If I understand correctly, I need to use these two programs to convert parts of the 3.9 NDK (namely the pragmas, clibs and amiga.lib) if I want to do AmigaOS programming.  Anyone know where I might go to find instructions for using these utilities to complete my dev environment?
 

Offline Trev

Re: fd2inline and hunk2aout
« Reply #1 on: March 24, 2005, 03:36:45 AM »
Both tools should have come with documentation. If they didn't, find a good mirror of the Geek Gadgets ftp site (like back2root.orgs) or try browsing http://www.geekgadgets.org through http://www.archive.org.

fd2pragma is more flexible than fd2inline. You only need hunk2aout if you want to link Amiga hunk files with gcc a.out files, but it sounds like that's what you want to do.

Trev
 

Offline MskoDestny

Re: fd2inline and hunk2aout
« Reply #2 on: March 25, 2005, 06:25:18 PM »
The archives I downloaded off of back2roots.org came with no documentation, but there did seem to be a documentation archive somewhere.  I was hoping I could just be lazy, oh well.

Quote
fd2pragma is more flexible than fd2inline.

Flexibility isn't of any great concern to me since (I think) that I only need to use this program once for a specific task (to convert files from the 3.9 NDK).  Whichever one will accomplish that task with the least amount of effort is the one I want to use.  Since I know little about either utility I can't say which that is.

Quote
You only need hunk2aout if you want to link Amiga hunk files with gcc a.out files, but it sounds like that's what you want to do.

What I want to do is develop Amiga applications using gcc.  Beyond that, the only things I know are from tutorials on setting up such a dev environment.  One mentioned converting amiga.lib into libamiga.a using hunk2aout.  I don't know what this library does, so I don't really know if I need to convert it (apart from the fact that some tutorial told me to do it.)
 

Offline SamuraiCrow

Re: fd2inline and hunk2aout
« Reply #3 on: March 25, 2005, 07:13:39 PM »
amiga.lib contains all of the bindings to the system libraries.  In order to create an Amiga executable you will need to convert amiga.lib to amiga.a to work with GCC.

If you find this all confusing I would suggest you download VBCC instead of GCC.  It only supports C but not C++ but so far neither does the Amiga APIs.  It comes with some of the include files you'll need for programming and it comes with fd2pragma and instructions.

If you must download GCC there is an installer file on kefren.be but unless you have already downloaded the 3.9 NDK it will be useless to you as Amiga.com has been redesigned and the 3.9 NDK is no longer available for download.
 

Offline MskoDestny

Re: fd2inline and hunk2aout
« Reply #4 on: March 25, 2005, 08:40:28 PM »
Fortunately, I nabbed the 3.9 NDK before the site redesign.

I didn't realize that vbcc was a free download.  I might have tried that first had I realized it sooner.  Might still end up using it, but since I've gone to the trouble of getting most of the stuff needed for gcc set up I'll probably try to finish the job.

I don't find all this conversion particularly confusing.  It's just most of the sites that I've visited that make mention of it use are rather sparse on details.  I figured I would post here and see if anyone had an easy answer before I started digging around in the documentation.