From: hemmer@hemmer.adsp.sub.org (Franz Hemmer)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Manx C and Boopsi Question
Date: 28 Aug 92 03:22:32 GMT
Reply-To: cbmehq!cbmden!hemmer@cbmvax.commodore.com (Franz Hemmer)
Organization: InterActivsion
X-NewsSoftware: GRn 1.16e (7/4/92) by Mike Schwartz & Michael B. Smith

In article <1992Aug27.133930.559@csc.canterbury.ac.nz> cree@elec.canterbury.ac.nz (Michael Cree) writes:
> Franz Hemmer (hemmer@hemmer.adsp.sub.org) wrote:
> : In article <1992Aug26.123823.523@csc.canterbury.ac.nz> cree@elec.canterbury.ac.nz (Michael Cree) writes:
> : > 
> : > .... It might be possible to pull out the correct
> : > object files from the lastest amiga.lib (available from CBM) and then
> : > add them to c.lib. In fact, I might just give that a go and report
> : > whether I was very successful. Will be a few a days before I get to
> : > try though, havn't got many free evenings this week :-/
> : 
> : Save yourself a lot of trouble and buy the 2.04 Native Developers Kit from
> : CATS - ~$20. This 4 disk set contains all that is needed including newer
> : AutoDoc than the book-form, 2.04 includes (!), amiga.lib etc. etc.
> : 
> : > Michael Cree                              Gold there is
> : 
> 
> That's exactly what I'm talking about. However, you have missed the
> crucial point, which is, the Manx library structure is different and
> more sophisticated than the standard Amiga (which SAS follows) library
> format. The Manx linker can use the standard Amiga format libraries
> because it mistakes them for object files and so includes the whole
> damn thing. Which means you get pages and pages of warning messages
> for doubley defined functions (some in both c.lib and amiga.lib) and
> error messages because you havn't defined library base pointers for
> every Amiga standard shareble library possible....
> 
> Get the point?

I do! I'm sorry I didn't know that Manx had this problem. Haven't they
done anything to help you guys out on this? If I were a Manx employee,
I would've contacted C= right away, in order to make updated linker
libraries for the Manx compiler.

> So, my brilliant idea is to take to the amiga.lib with a binary
> editor, identify the appropriate routines (the library is just
> concatenated object files) and pull them out into seperate object
> files to include into c.lib.

SAS has `oml' Object Module Librarian, which can do all necessary
manipulations on .lib's - add, replace, delete .o's. Perhaps some kind
sould would help you pull out all the object files. This would save
you the trouble fiddling with the .lib with a binary editor.

> Or better still, maybe one of the Commodore guys would like to post
> the source code to the routines from amiga.lib that were introduced
> into version 37??? Or would that be violating copyright?

Perhaps they could just release amiga.lib as 30000 .o's ? :-)

> Michael Cree                              Gold there is

-- 
*-------------------------------------------------------------------------*
|         _   UseNet: (uunet|rutgers|pyramid)!cbmvax!cbmehq!cbmden!hemmer |
|         \\ _                         CBMNET: hemmer@hemmer.adsp.sub.org |
| InterActi\X/ision - The name of precision                               |
| Best regards                         >> Carpe Diem! - Seize the day! << |
| Franz Hemmer - Software Developer located in Silkeborg, Denmark, Europe |
*-------------------------------------------------------------------------*