Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: MskoDestny on March 17, 2005, 03:51:51 PM

Title: fd2inline and hunk2aout
Post by: MskoDestny 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?
Title: Re: fd2inline and hunk2aout
Post by: Trev 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
Title: Re: fd2inline and hunk2aout
Post by: MskoDestny 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.)
Title: Re: fd2inline and hunk2aout
Post by: SamuraiCrow 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 (http://sun.hasenbraten.de/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 (http://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.
Title: Re: fd2inline and hunk2aout
Post by: MskoDestny 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.