Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* What is /usr/lib/libots.a for?
@ 1996-11-05  5:00 Carsten Hammer
  1996-11-11  5:00 ` Kent Glossop
  0 siblings, 1 reply; 2+ messages in thread
From: Carsten Hammer @ 1996-11-05  5:00 UTC (permalink / raw)



Hi,
I recently had some changes in a software i wrote and now have to link
the ots lib. The problem is that there seems to be no information about
what this lib does and why i have to link it. The manual pages contain no
hint and the only way to find out that i have to link with it
was to do a nm -A /usr/lib/lib*.a|grep OtsDivide64Unsigned
and look what libs were needed.
This seems to be no professional programming, is it?:)
Any hint whats going on?
ciao
Carsten

-- 
Carsten Hammer Schwindstr. 7 33615 Bielefeld
       chammer@POST.uni-bielefeld.de
       chammer@d2hammer.physik.uni-bielefeld.de



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: What is /usr/lib/libots.a for?
  1996-11-05  5:00 What is /usr/lib/libots.a for? Carsten Hammer
@ 1996-11-11  5:00 ` Kent Glossop
  0 siblings, 0 replies; 2+ messages in thread
From: Kent Glossop @ 1996-11-11  5:00 UTC (permalink / raw)
  To: Carsten Hammer


RE: Ots* routines on Digital Unix

The Ots routines (e.g. OtsDivide64Unsigned, OtsMove, etc.) are low-level
support routines for code generated by GEM-based compilers that perform
operations like division, block move and other "primitive" byte string
operations, bitfield insertion/extraction, 128 bit floating point
support routines, etc., that you might find in a CISC instruction set,
but that are either library routines or expanded sequences of in-line
code on a RISC machine.  (The Ots routines are quite highly tailored,
and in many cases were written by compiler developers, since they were/
are the ones that have to determine appropriate tradeoffs in cost
between
in-line cases and cases handled by the routines, and are often the ones
most aware of the relevant techniques and tradeoffs.)

Prior to Digital Unix 4.0, these routines were package in a single
library (libots) which wasn't linked in by default for C programs,
since the pre-Unix 4.0 C compiler wasn't a GEM-based compiler and
didn't use/need those routines.  Starting with Digital Unix V4.0,
the default C compiler is GEM-based (formerly invoked cc -migrate),
and as a result, the Ots routines used by the GEM-based C compiler
have moved into libc, while some sets of other routines (e.g. bitstring
and 16 bit character string) that are only used by other languages
remain in libots.

-- 
Kent Glossop				(work) glossop@zko.dec.com
GEM compiler system			(personal) kglossop@ix.netcom.com
Digital Equipment Corporation



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-11-11  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-11-05  5:00 What is /usr/lib/libots.a for? Carsten Hammer
1996-11-11  5:00 ` Kent Glossop

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox