🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #30782

Re: Librarian for Lattice C 3.04

#30782
From: Barnacle Wes
Date: Mon, 22 Feb 1988 15:26
23 lines
1522 bytes
In article <8802141427.AA10755@ucbvax.Berkeley.EDU>, FKERONNE@HLERUL52.BITNET writes:
> Does someone know the format of the *.bin object files and the format of the
> *.bin libraries supplied with the compiler?  Perhaps it would be possible to
> write my own librarian.

The GST Linker used by Lattice C does not have a "library" format.
The library files are just concatenations of object files.  If you
have a shell of any sort, you can add a file to a library as follows:

mv library.bin temp.bin
cat temp.bin newfile.bin > library.bin
rm temp.bin

Extracting a file out, or removing a file, would be trickier: you
would have to read the header information for the first object, skip
over it, read the header info for the second object, and so on until
you came to the file you want.

-- 
    /\              -  "Against Stupidity,  -    {backbones}!
   /\/\  .    /\    -  The Gods Themselves  -  utah-cs!utah-gr!
  /    \/ \/\/  \   -   Contend in Vain."   -  uplherc!sp7040!
 / U i n T e c h \  -       Schiller        -     obie!wes
Technical Details
Message-ID: <69@obie.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!lll-tis!ames!nrl-cmf!mailrus!tut.cis.ohio-state.edu!ut-sally!utah-cs!utah-gr!uplherc!sp7040!obie!wes
References: <8802141427.AA10755@ucbvax.Berkeley.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!lll-tis!ames!nrl-cmf!mailrus!tut.cis.ohio-state.edu!ut-sally!utah-cs!utah-gr!uplherc!sp7040!obie!wes
From: wes@obie.UUCP (Barnacle Wes)
Newsgroups: comp.sys.atari.st
Subject: Re: Librarian for Lattice C 3.04
Message-ID: <69@obie.UUCP>
Date: 22 Feb 88 15:26:08 GMT
References: <8802141427.AA10755@ucbvax.Berkeley.EDU>
Organization: UinTech, Layton, UT
Lines: 22
Summary: Lattice doesn't use a librarian!