home *** CD-ROM | disk | FTP | other *** search
- Path: globe.indirect.com!fnf
- From: fnf@fishpond.amigalib.com (Fred Fish)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: GNU-C and Devpac
- Date: 8 Feb 1996 23:40:00 GMT
- Organization: Cronus
- Message-ID: <4fe1kg$7rg@globe.indirect.com>
- References: <9602011841.AA00072@ldngedge.demon.co.uk> <4etb77$ae3@taiwan.informatik.uni-rostock.de> <4etlqi$i40@globe.indirect.com> <4f7j64$d01@taiwan.informatik.uni-rostock.de>
- NNTP-Posting-Host: amigalib.com
-
- In article <4f7j64$d01@taiwan.informatik.uni-rostock.de>,
- Gunther Nikl <gnikl@informatik.uni-rostock.de> wrote:
- >Fred Fish (fnf@fishpond.amigalib.com) wrote:
- >> But we are *very* close to being ready to switch over to the
- >> native object format. This is an often requested feature
- >> and we are committed to making it happen. The nice thing about
- >
- > I do not request it. Is it really useful?
-
- I think it is an absolute requirement that if GNU based tools are to
- be taken seriously by the general developer community that they
- support the official Amiga object file and library formats for both
- the m68k and the PPC. Never mind that these formats are primitive and
- limited compared to a modern format like ELF, they are the defacto
- standard unless AT decides to change the situation with future
- releases.
-
- >> a BFD based toolchain is that you can have a prefered default
- >> format (like native AmigaOS hunk format) while still reading
- >> or writing other formats (a.out, ELF, etc) on demand.
- >
- > Yes, and the BFD based tools are 5 times bigger than the old
- > a.out tools. Thanks for this improvement.
-
- You've welcome. :-)
-
- The linker is now about 192 Kb instead of 40 Kb:
-
- text data bss dec hex filename
- 35072 892 4608 40572 9e7c bin:ld
- 192560 1380 1640 195580 2fbfc ld.new
-
- With a switch to a bfd based linker you get:
-
- (1) The ability to easily configure and build the tools as a cross
- compiler on a variety of hosts, for a variety of targets.
- I.E. you can build an m68k or PPC toolchain to generate
- Amiga executables on virtually any UNIX system, little endian
- or big endian, with typically nothing more than "configure; make".
- I recent built an m68k AmigaDOS toolchain on a lowly 486/66
- linux system, and it runs about 3 times faster than the one
- on my 40 Mhz WarpEngine based Amiga. A 200 Mhz P6 system would
- probably run these same executables 10-20 times faster than my
- Amiga.
-
- (2) The ability to support more than one object and executable file
- format within a single toolchain. For the PPC AmigaDOS toolchain
- that I recently built (generates PPC code in AmigaDOS hunk format
- executables) I configured it to use ELF as the object file format.
- It took all of one afternoon to get it running.
-
- (3) You get the benefit of the thousands of hours of development
- that have gone into the linker in the last few years. As one
- example, the linker can optimize your object code and generate
- a shorter executable than the aggregate sizes of your object
- files.
-
- (4) I'm sure there must be a (4) or more, but I'm not that
- intimately familiar with the history of the development of
- the linker.
-
- BTW, similar considerations apply to all the other tools (gas, objdump,
- size, strip, nm, etc).
-
- It should also be quite possible to turn BFD into a shared library.
-
- -Fred
-
- --
- CRONUS -- 1840 E. Warner Road #105-265 -- Tempe, AZ 85284 -- USA
- Voice: (800) 804-0833 or (602) 491-0442 FAX: (602) 491-0048
- Email: info@amigalib.com or info@ninemoons.com (coming soon)
- Ftp site: ftp.amigalib.com or ftp.ninemoons.com (coming soon)
-