Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* ANDF - some information
@ 1993-12-01 10:24 John Maccallum
  1993-12-01 14:17 ` Rick Richardson
                   ` (2 more replies)
  0 siblings, 3 replies; 68+ messages in thread
From: John Maccallum @ 1993-12-01 10:24 UTC (permalink / raw)


This article appeared on comp.compilers a couple of weeks ago.  Please
send any email replies to the address given below (not to me!).

_____________________________________________________________________________
There have been occasional references to ANDF on Usenet. There have
been some common questions about ANDF's capabilities and questions
about availability of documentation and software. I can provide some
answers to the questions and a source for documentation. 

I am the TDF project manager at DRA (Defence Research Agency) at
Malvern in the UK. We were selected by the OSF's RFT (Request for
Technology) process as the technology supplier for ANDF. Our
technology is called TDF (TenDRA Distribution Format - where TenDRA
is the trademark we apply to all our software that implements ANDF).

There are three common comments about ANDF:

1) ANDF will fail for the same reasons as UNCOL and pcode did.

2) Run-time performance of applications compiled through ANDF will be
unacceptably slow (because of lowest common denominator code).

3) who needs an ANDF anyway? - e.g. CD-ROM solves the distribution
problem.

I will address these issues in order:

1) Of course DRA was aware of the UNCOL and pcode experience. TDF was
designed to avoid the pitfalls inherent in these approaches. For full
details I would refer the reader to an excellent paper by Dr Stavros
Macrakis at OSF ("From UNCOL to ANDF"). For access to OSF's FTP
contact Sandi Caldwell (well@osf.org). You can join OSF's emailing
list by emailing Rich Ford at OSF on andf-tech-request@osf.org . A very
brief synopsis of this paper is that firstly there are many more
recent experiences with multi-lingual ILs than UNCOL and pcode, and
that compiler technology and computer capabilities have advanced very
considerably since UNCOL and pcode were designed.  Secondly, the TDF
specification has many novel aspects to suit it for its task: it is a
tree structured IL based on linguistic (not machine) abstractions -
the design aim was to retain all the information needed for code
optimisation techniques but to discard syntactic sugar that would aid
reverse engineering (Stavros Macrakis has also written a paper about
reverse engineering ANDF). This approach is key to the ability to
write state-of-the-art code generators. 

2) performance issues: 

The approach adopted in TDF ensures that the information needed for
code optimisations is not lost so that the theoretical "penalty" of
having an ANDF is largely avoided. In addition the performance of
compilers is also an economic issue - how much effort is the compiler
implementor willing to fund i.e. how far into the region of
diminishing returns can the compiler implementor afford to go?
Speaking solely for DRA's TenDRA installers the economic benefits of
ANDF far outweigh any (small) theoretical disadvantages. We have
examined the outputs of most high quality C compilers available for
all the main CISCs and RISCs and have built up a large knowledge-base
of optimisation techniques (plus a few home-brewed ones). We have also
invested heavily in a framework for TDF to TDF optimisations (both
universal and machine-class specific) so that as much as 70% of the
code of an installer is shared with at least one other installer.
Quoting a couple of our latest figures: 

On Version 14.1 of SVR4.2 using the native ccs 2.0 as comparison
called as cc -O -Xa (to get the best optimisations) on a KAMCO 486/50,
our SPEC (using 1.2B - we have only just bought the latest version of
SPEC) figure is 8% better. 

On Ultix 4.2A using a DECSystem 5100 against cc -O2 our figure is 3%
better (we cannot get all of SPEC through cc -O3, but substituting the
O2 figure for the test that cr-O3, but substituting the
O2 figure for the test that crashes and comparing against our compiler
using its multi-file optimisations gives us a figure 1% worse). 

Quoting performance figures is *very* suspect (I did not mention our 
SPARC figures because we have not compared with the latest gcc or the 
unbundled SUN compiler). They vary so much depending on whether you 
have the latest versions of the comparison compilers, and are 
significantly affected by exactly which version of the processor chips
you are using (e.g. upgrading from Motorola 68030 to 68040 made a big 
difference), and can be significantly affected by the cache size in the 
box you are using etc.. When OSF reruns our SPEC figures they are 
seldom the same (sometimes better, sometimes worse). Perhaps more 
interesting is that OSF have run two real applications (Informix's 
Wingz and the Oracle RDBMS) through our system and compared performance 
with the products as shipped and can detect no significant degradation 
going through ANDF.

I should stress that the TenDRA installers are a proprietary
implementation of a fully open standard. We are marketing the TenDRA
technology because keeping state-of-the-art performance for all the
main architectures (PowerPC, PA and Alpha implementations are
underway) is horribly expensive! Other organisations have had no problems
adapting other (non DRA) code generator technology for use with ANDF -
OSF has built a bridge to gcc, and an Italian company called Etnoteam,
had no trouble building an Alpha installer using their in-house
compiler technology. To help other organisations write ANDF tools
independently of DRA and to avoid unnecessary and potentially
unhelpful duplication, we have put a substantial amount of software in
the Public Domain: this includes TDF readers and writers which are
automatically generated from a machine understandable representation
of the TDF specification, the TDF linker (which links token
declarations to token definitions), tnc (an ASCII to TDF and TDF to
ASCII assembler / pretty printer), pl-tdf (a high level assembler for
producing hand-crafted token definitions) and tspec (a tool for
turning API definitions into architecture-neutral headers). 

All our performance figures are for C. There are no complete compilers
for other languages to quote figures for but implementations are
underway for Fortran (77 and 90), C++, Ada 9x and Dylan; also
MicroFocus have helped us evaluate Cobol issues. A number of minor
tweaks have been added to ANDF to ensure that these other languages
can have run-time performance comparable to native compilers -
progress on  Fortran, C++ and Ada is sufficient to give us
considerable confidence that the TenDRA installers can be modified to
handle them without loss of performance (Fortran, for example, will
require additional optimisations to be added to the TenDRA
installers). 

By way of an aside - TDF looks to be ideal for use in the
implementation of portable compilers / compiled-code simulators for
niche languages, e.g. simulation languages such as VHDL or Verilog in
ECAD or Chill and SDL in telecoms, system simulation languages (e.g.
CACI's Modsim), niche implementation languages (e.g. in telecoms and
ECAD), legacy programming languages (PL1, RTL2, ....), etc. 

3) distribution, who needs it? 

The first thing to say is that ANDF offers considerable advantages over
CD-ROM. A CD-ROM does not help with yet-to-be-released systems.
Multiple copies may be desired on CD-ROM for different variants or
implementations of the same architecture (e.g. 32 & 64 bit versions,
differing instruction scheduling rules, or to avoid emulation traps for
complex instructions on low end implementations).  Then there is the
possibility of different object file formats (e.g. for UNIX and NT).
CD-ROMs are not of infinite size, who falls off the end? The logistics
of putting a multi architecture CD-ROM together will be pretty horrible.
A fuller discussion can be found in a paper by Stavros Macrakis called 
"Distributing software for multiple platforms: Virtual binary vs.
multiple binary".

The tools we have built for ANDF have benefits even if an ISV still
intends to ship non-ANDF versions of their software (on a CD-ROM or
whatever). The non-distribution benefits of using ANDF tools will in
the short term be more visible than ANDF's use for distribution.
Distribution remains an important but longer term objective. The two
immediate uses of ANDF that we believe will precede software
distribution are (1) for API definition and checking, and (2) as aid
to writing portable applications. 

Firstly, to design ANDF we had to solve an important API issue.
System C headers are implementations of API specifications,
containing a complete program description of an API which completely
defines those parts of an API specification which are opaque in the
API definition (e.g. the type of FILE in ANSI C, which is a parameter
to fprintf, is an opaque datastructure and can be any particular
datastructure an implementation wants to choose). For software
distribution, standard C system headers cannot be used because of the
implementation details contained within them. The solution adopted in
TDF is to define architecture-neutral header files using an interface
definition language contained within pragmas. These architecture
neutral headers faithfully reflect the written API specifications.
Because the architecture neutral headers contain no
implementation-specific information, DRA's ANSI C producer checks
that application programs do not stray outside the written API
specification. Parts of the API which are not fully defined in the
API specification are passed by the ANSI C producer into the TDF as
"tokens". Tokens are placeholders in the TDF tree that can be
substituted later (usually on the target machine) by an appropriate
token definition (TDF sub-tree). In the API case token definitions
are supplied on each target which supply the implementation dependent
program details (e.g. the exact type of FILE). Not wishing to create
token definitions by hand they are automatically created
>from a comparison of the architecture neutral headers and
the system headers for the machine in question. As part of this
process any discrepancies between the system headers and the API
specification (as described by the architecture neutral headers) are
reported. It can be seen that TenDRA performs (static analysis)
conformance checks of both applications and system headers against API
specifications. This gives API definitions "teeth" in a way they have
not had before. This property of ANDF is causing a lot of interest in
standards defining organisations. 

The second benefit of ANDF that is independent of distribution is as
an aid to designing and implementing portable applications. The API
defining features of ANDF can be used to replace conditional
compilation with an application-specific API. The advantage of
defining an API is that the portability requirements of an
application are cleanly defined - reducing porting effort and
allowing a communication of porting requirements between ISVs and
System Vendors. In addition the ANDF scenario makes it very natural
for our ANSI C producer to compile in the absence of the target
machine's architectural properties. As a result it was
straightforward to build powerful portability checks into the ANSI C
producer. As a result ISVs can derive considerable benefits from using
ANDF tools, even if for the time being products are still distributed
in a non-ANDF format. In doing so ISVs will find that many of their
testing procedures no longer discover errors - building confidence
that software distribution in ANDF is viable. 

I am pleased to say that ANDF is now very well documented. Much of
this is available from OSF or directly from me (all DRA documentation
is available free of charge), I enclose an order form at this end of
this article. I hope that those Usenet correspondents interested in
ANDF will take the opportunity to check out the claims I have made
here. 

Software is currently available to members of OSF or from DRA for
evaluation by potential licensees. We had been reluctant to make an
unrestricted release of the software to the research community until
the software was of near product quality reliability and the
documentation was in good shape. Both of these requirements have now
been achieved and DRA is looking to fund an external organisation to
provide support for a release of DRA's software to the research
community. The terms of this release would be for any non-commercial
use and it will either be distributed free or for a nominal charge to
cover distribution costs. Any organisation interested in bidding to
provide such support should contact me directly. 

I hope the information in this article has been helpful. If anyone has 
any further questions I will try to answer them.


Nic Peeling

TenDRA Project Manager

DRA Malvern

email: peeling@hermes.mod.uk (internet)
       peeling@dra.hmg.gb  (alternate internet address)
-------------------------------------------------------------------------------
DOCUMENTATION ORDER FORM


Documents available:

1. TDF Specification (62 pages) - describes the specification chosen 
   to form the basis of OSF's ANDF technology.

2. Guide to the TDF Specification (50 page) - a detailed technical 
   guide for implementors.

3. TDF Facts and Figures (8 pages) - details the performance of 
   current implementations.

4. TDF and Portability (39 pages) - describes the relationship between 
   TDF, portability and APIs. Contains worked examples.

5. X11, An Example in API Specification (21 pages) - a detailed worked 
   example of API specification.

6. The C to TDF Producer (67 pages) - a detailed technical guide.

7. Frequently Asked Questions about ANDF (11 pages)

Please provide the following information:

name:

organisation:

email address:

snail mail address:

documents wanted (using numbers 1 - 7):

email versions required?:

documents are available in compressed PostScript and can be sent using 
either btoa or uuencode, please specify required mechanism:

snail mail documents required? (for ecouencode, please specify required mechanism:

snail mail documents required? (for economy we can only send one 
copy):

do you wish to be added to our mailing list for occasional additional 
information?:

If you are willing to provide the following information we would find 
it useful to put in our records:

your particular interest in ANDF:

phone number:

FAX number:



--
John MacCallum
---- 
TDF group
DRA Malvern, St Andrews Rd, Malvern, 	
Worcs WR14 4EH, England			Fax: +44 684 894389
jmaccallum@hermes.dra.hmg.gb		Phone: +44 684 892733 ext 2328


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

* Re: ANDF - some information
  1993-12-01 10:24 ANDF - some information John Maccallum
@ 1993-12-01 14:17 ` Rick Richardson
  1993-12-02  7:22   ` Harro Kremer
  1993-12-06  8:03 ` Dave Yost
  1993-12-08 10:45 ` Ronald F. Guilmette
  2 siblings, 1 reply; 68+ messages in thread
From: Rick Richardson @ 1993-12-01 14:17 UTC (permalink / raw)


john@brandywine.dra.hmg.gb (John Maccallum) writes:

>There have been occasional references to ANDF on Usenet. There have
>been some common questions about ANDF's capabilities and questions
>about availability of documentation and software. I can provide some
>answers to the questions and a source for documentation. 

What vendors have committed to a  date for and/or are already
shipping ANDF installers with the base operating system?

-Rick
--
Rick Richardson		Senior Staff Engineer	NCSA Mosaic -
DigiBoard, Inc.		Email: rick@digibd.com	#1 reason for a national
6400 Flying Cloud Dr.	Fax:   (612) 943-0803	(toll-free) data highway.
Eden Prarie, MN 55344	Tel:   (612) 943-5383	<standard disclaimer>


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

* Re: ANDF - some information
  1993-12-01 14:17 ` Rick Richardson
@ 1993-12-02  7:22   ` Harro Kremer
  1993-12-02 13:01     ` John Maccallum
  1993-12-02 13:48     ` Donald Lewine
  0 siblings, 2 replies; 68+ messages in thread
From: Harro Kremer @ 1993-12-02  7:22 UTC (permalink / raw)


In article <rick.754755427@digibd>, rick@digibd.digibd.com (Rick Richardson)
writes:
|> john@brandywine.dra.hmg.gb (John Maccallum) writes:
|> 
|> >There have been occasional references to ANDF on Usenet. There have
|> >been some common questions about ANDF's capabilities and questions
|> >about availability of documentation and software. I can provide some
|> >answers to the questions and a source for documentation. 
|> 

I must have must part of the discussion. 

Can someone tell me what ANDF is?


-- 
      __            Harro Kremer                  <kremer@cs.utwente.nl>
 ____/  \_______
|    \__/       | Univ. of Twente,   Dept. Computer Science,  TIOS-group
| ___    _   __ | P.O. Box 217,   NL-7500 AE  Enschede,  The Netherlands
|  |  | / \ (_  |                 tel: +31 53 89 3703 fax: +31 53 333815
|  |  | \_/ __) | 
|_______________|  Freedom's just another word for nothing left to lose.
                                   - Kris Kristofferson & Janis Joplin -


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

* Re: ANDF - some information
  1993-12-02  7:22   ` Harro Kremer
@ 1993-12-02 13:01     ` John Maccallum
  1993-12-02 13:48     ` Donald Lewine
  1 sibling, 0 replies; 68+ messages in thread
From: John Maccallum @ 1993-12-02 13:01 UTC (permalink / raw)


In article <1993Dec2.082256@cs.utwente.nl> kremer@cs.utwente.nl (Harro Kremer) writes:

   In article <rick.754755427@digibd>, rick@digibd.digibd.com (Rick Richardson)
   writes:
   |> john@brandywine.dra.hmg.gb (John Maccallum) writes:
   |> 
   |> >There have been occasional references to ANDF on Usenet. There have
   |> >been some common questions about ANDF's capabilities and questions
   |> >about availability of documentation and software. I can provide some
   |> >answers to the questions and a source for documentation. 
   |> 

   I must have must part of the discussion. 

   Can someone tell me what ANDF is?

From the FAQ:

"ANDF stands for Architecture Neutral Distribution Format.  The concept of
an ANDF was pioneered by the Open Software Foundation (OSF).  The OSF
issued a Request for Technology(RFT) in May 1989 to solicit proposals for
technologies that might form the basis of their ANDF; OSF received 23 such
proposals.

The objective of ANDF is to encourage the development of a large body of
'shrink wrapped' applications capable of running on any Open Systems platform
which implements the necessary libraries (APIs)."


   -- 
	 __            Harro Kremer                  <kremer@cs.utwente.nl>
    ____/  \_______
   |    \__/       | Univ. of Twente,   Dept. Computer Science,  TIOS-group
   | ___    _   __ | P.O. Box 217,   NL-7500 AE  Enschede,  The Netherlands
   |  |  | / \ (_  |                 tel: +31 53 89 3703 fax: +31 53 333815
   |  |  | \_/ __) | 
   |_______________|  Freedom's just another word for nothing left to lose.
				      - Kris Kristofferson & Janis Joplin -

--
John MacCallum
---- 
TDF group
DRA Malvern, St Andrews Rd, Malvern, 	
Worcs WR14 4EH, England			Fax: +44 684 894389
jmaccallum@hermes.dra.hmg.gb		Phone: +44 684 892733 ext 2328


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

* Re: ANDF - some information
  1993-12-02  7:22   ` Harro Kremer
  1993-12-02 13:01     ` John Maccallum
@ 1993-12-02 13:48     ` Donald Lewine
  1993-12-02 15:49       ` Robert Dewar
  1993-12-02 16:47       ` ANDF - some information Rodger Lea
  1 sibling, 2 replies; 68+ messages in thread
From: Donald Lewine @ 1993-12-02 13:48 UTC (permalink / raw)


In article <1993Dec2.082256@cs.utwente.nl>, kremer@cs.utwente.nl (Harro Kremer) writes:
|> 
|> Can someone tell me what ANDF is?
|> 
ANDF stands for Architecture Neutral Distribution Format.  It has been
a research project of the Open Software Foundation since that
organization was founded.

The idea is to convert ISO Standard C into a mostly-compiled format
that can be installed on any system without regard to the instruction
set of the CPU.  The "Installer" reads ANDF and converts it to the
instruction set of the target.

ANDF has been a technical success but a commercial flop.  There is
an ANDF compiler and several very effective installers, however, 
very few software vendors are willing to embrace the technology for
their product.

In the mean time, some new uses are bing found for the ANDF tools.
For example, as tests for standards conformance.

For more information contact the OSF at +1-617-621-8700 or FAX
+1+617-225-2943

-- 
--------------------------------------------------------------------
Donald A. Lewine                (508) 898-6488 Voice **NEW NUMBER**
Data General Corporation        (508) 366-0750 FAX
4400 Computer Drive. MS D112A
Westboro, MA 01580  U.S.A.

uucp: uunet!dg!lewine   Internet: dlewine@cheshirecat.webo.dg.com

All opinions in this message are logical, well reasoned and my own.


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

* Re: ANDF - some information
  1993-12-02 13:48     ` Donald Lewine
@ 1993-12-02 15:49       ` Robert Dewar
  1993-12-02 21:24         ` Simon Patience
  1993-12-08 10:56         ` ANDF - some (mis)information Ronald F. Guilmette
  1993-12-02 16:47       ` ANDF - some information Rodger Lea
  1 sibling, 2 replies; 68+ messages in thread
From: Robert Dewar @ 1993-12-02 15:49 UTC (permalink / raw)


Of course from one point of view, ANDF technology is completely redundant,
since we already have the necessary technology: C as the distribution medium
and C compilers as the installers.

Of course this does not address the issues of keeping proprietary software
proprietary, which is really what ANDF is all about, so it is a little
ironic that "ANDF has been a technical success, but not a commercial
success".

Even granting the need to keep distributed code proprietary, one wonders
if something like Gimpel's C-shroud would fill the need.

P.S. this is awfully heavily cross posted! Since I read it on comp.lang.ada
I will ask an Ada-relevant question, namely would there be any value in
an Ada-shroud with similar intentions to the C-shroud (thoroughly mask
and disguise the intention of the source).

Note: this is not the Robert Dewar who works on GCC stuff, and therefore
would not for a moment countenance discussions of how to keep software
proprietary, but rather his evil twin brother :-)


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

* Re: ANDF - some information
  1993-12-02 13:48     ` Donald Lewine
  1993-12-02 15:49       ` Robert Dewar
@ 1993-12-02 16:47       ` Rodger Lea
  1993-12-02 21:27         ` Simon Patience
  1 sibling, 1 reply; 68+ messages in thread
From: Rodger Lea @ 1993-12-02 16:47 UTC (permalink / raw)


In article <1993Dec2.134838.8047@webo.dg.com>, lewine@cheshirecat.webo.dg.com (Donald Lewine) writes:
> In article <1993Dec2.082256@cs.utwente.nl>, kremer@cs.utwente.nl (Harro Kremer) writes:
> |> 
> |> Can someone tell me what ANDF is?
> |> 
> ANDF stands for Architecture Neutral Distribution Format.  It has been
> a research project of the Open Software Foundation since that
> organization was founded.
> 

Funny, I thought ANDF was developed by RAL labs and adopted by
OSF under one of their RFT deals. I can't imagine OSF developing
something like ANDF.

I await enlightement .....

rodger
-- 
Rodger Lea			rjl@hplb.hpl.hp.com
Hewlett-Packard Laboratories	
Bristol, England		+44 272 228074


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

* Re: ANDF - some information
  1993-12-02 15:49       ` Robert Dewar
@ 1993-12-02 21:24         ` Simon Patience
  1993-12-06  7:58           ` Dave Yost
  1993-12-08 11:23           ` Ronald F. Guilmette
  1993-12-08 10:56         ` ANDF - some (mis)information Ronald F. Guilmette
  1 sibling, 2 replies; 68+ messages in thread
From: Simon Patience @ 1993-12-02 21:24 UTC (permalink / raw)


In article <2dl2qs$6ks@schonberg.cs.nyu.edu>, dewar@cs.nyu.edu (Robert Dewar) writes:
> Of course from one point of view, ANDF technology is completely redundant,
> since we already have the necessary technology: C as the distribution medium
> and C compilers as the installers.

ANDF however is not limited to the C language.

> Of course this does not address the issues of keeping proprietary software
> proprietary, which is really what ANDF is all about, so it is a little
> ironic that "ANDF has been a technical success, but not a commercial
> success".

The main reason that "ANDF has [..] not been a commercial success" is that
there has been no attempt yet to make it one. ANDF is still firmly in the
Research Institute at OSF while the technology is being further refined.

> Even granting the need to keep distributed code proprietary, one wonders
> if something like Gimpel's C-shroud would fill the need.
> 
> P.S. this is awfully heavily cross posted! Since I read it on comp.lang.ada
> I will ask an Ada-relevant question, namely would there be any value in
> an Ada-shroud with similar intentions to the C-shroud (thoroughly mask
> and disguise the intention of the source).

You could always replace these N (1 per language) shrouds (which require an
unshrouder and N compilers on the target machines) with one ANDF installer
on each target machine and N producers (1 per language) on one source machine.

Simon.

-- 
  Simon Patience				Phone: (617) 621-7376
  Open Software Foundation			FAX:   (617) 621-8696
  1 Cambridge Center				Email: sp@osf.org
  Cambridge, MA 02142				       uunet!osf!sp


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

* Re: ANDF - some information
  1993-12-02 16:47       ` ANDF - some information Rodger Lea
@ 1993-12-02 21:27         ` Simon Patience
  0 siblings, 0 replies; 68+ messages in thread
From: Simon Patience @ 1993-12-02 21:27 UTC (permalink / raw)


In article <CHF2nG.98v@hplb.hpl.hp.com>, rjl@rlea.hpl.hp.com (Rodger Lea) writes:
> In article <1993Dec2.134838.8047@webo.dg.com>, lewine@cheshirecat.webo.dg.com (Donald Lewine) writes:
> > In article <1993Dec2.082256@cs.utwente.nl>, kremer@cs.utwente.nl (Harro Kremer) writes:
> > |> 
> > |> Can someone tell me what ANDF is?
> > |> 
> > ANDF stands for Architecture Neutral Distribution Format.  It has been
> > a research project of the Open Software Foundation since that
> > organization was founded.
> > 
> 
> Funny, I thought ANDF was developed by RAL labs and adopted by
> OSF under one of their RFT deals. I can't imagine OSF developing
> something like ANDF.
> 
> I await enlightement .....

ANDF has been going on in OSF since the very early days (not quite since it
was founded, but close). The early work was in the form of an RFT, which selected
the RAL work and we have been working together with them ever since.

Simon.

-- 
  Simon Patience				Phone: (617) 621-7376
  Open Software Foundation			FAX:   (617) 621-8696
  1 Cambridge Center				Email: sp@osf.org
  Cambridge, MA 02142				       uunet!osf!sp


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

* Re: ANDF - some information
  1993-12-02 21:24         ` Simon Patience
@ 1993-12-06  7:58           ` Dave Yost
  1993-12-07 16:38             ` Stavros Macrakis
  1993-12-08 20:48             ` Matt Kennel
  1993-12-08 11:23           ` Ronald F. Guilmette
  1 sibling, 2 replies; 68+ messages in thread
From: Dave Yost @ 1993-12-06  7:58 UTC (permalink / raw)


In article <2dlmdu$iaf@paperboy.osf.org> sp@canal.osf.org (Simon Patience) writes:
>In article <2dl2qs$6ks@schonberg.cs.nyu.edu>, dewar@cs.nyu.edu (Robert Dewar) writes:
>> Of course from one point of view, ANDF technology is completely redundant,
>> since we already have the necessary technology: C as the distribution medium
>> and C compilers as the installers.
>
>ANDF however is not limited to the C language.
>
>You could always replace these N (1 per language) shrouds (which require an
>unshrouder and N compilers on the target machines) with one ANDF installer
>on each target machine and N producers (1 per language) on one source machine.

One nice side effect if ANDF succeeds might be that it could
ease the stranglehold of C and C++.

In other words, if ANDF makes a wonderful new standard
intermediate language come into being with great code
generators for all platforms, then a creator of an
alternative languages could make their language instantly
available on all platforms.  This would make it much easier
for a non-C/C++ language to be taken seriously and used
without many of the worries currently attending alternative
languages.

BTW, I fervently hope that the ANDF developers are
giving serious consideration to standardizing an API for
incremental use of the code generators and linkers so that
dynamic programming environments and debuggers can utilize
ANDF code generators in an incremental-compiling style.

What a great day that would be!

(For those of you new to this cross-posted thread, there is
an interesting long posting on the status of ANDF on
comp.unix.osf.misc.)

-- 
  Dave Yost
      @    .COM


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

* Re: ANDF - some information
  1993-12-01 10:24 ANDF - some information John Maccallum
  1993-12-01 14:17 ` Rick Richardson
@ 1993-12-06  8:03 ` Dave Yost
  1993-12-08 10:45 ` Ronald F. Guilmette
  2 siblings, 0 replies; 68+ messages in thread
From: Dave Yost @ 1993-12-06  8:03 UTC (permalink / raw)


In article <JOHN.93Dec1102438@brandywine.dra.hmg.gb> john%isis@hermes.dra.hmg.gb writes:
>Secondly, the TDF
>specification has many novel aspects to suit it for its task: it is a
>tree structured IL based on linguistic (not machine) abstractions -
>the design aim was to retain all the information needed for code
>optimisation techniques but to discard syntactic sugar that would aid
>reverse engineering (Stavros Macrakis has also written a paper about
>reverse engineering ANDF). This approach is key to the ability to
>write state-of-the-art code generators. 

Can you say something about how ANDF will work with object-oriented
languages?  Are you aware of SOM?  How will ANDF interplay with SOM?

-- 
  Dave Yost
      @    .COM


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

* Re: ANDF - some information
  1993-12-06  7:58           ` Dave Yost
@ 1993-12-07 16:38             ` Stavros Macrakis
  1993-12-07 22:24               ` Robert Dewar
  1993-12-09  8:41               ` Rick Richardson
  1993-12-08 20:48             ` Matt Kennel
  1 sibling, 2 replies; 68+ messages in thread
From: Stavros Macrakis @ 1993-12-07 16:38 UTC (permalink / raw)


In article <yostCHLst5.KoA@netcom.com> Dave@Yost.COM (Dave Yost) writes:

   One nice side effect if ANDF succeeds might be that it could
   ease the stranglehold of C and C++.

Absolutely.  In fact, it makes for a "level playing field" where the
technical merits of innovative languages like Eiffel and Dylan can be
judged on their own, without worrying about availability of compilers.

   BTW, I fervently hope that the ANDF developers are giving serious
   consideration to standardizing an API for incremental use of the
   code generators and linkers so that dynamic programming
   environments and debuggers can utilize ANDF code generators in an
   incremental-compiling style.

The ANDF technology itself supports such incremental compilation and
linking today.  The problem is with the very last step in the
process-- actually loading the binaries (.o) into the running image.
ANDF itself cannot solve that problem, since ANDF depends on the
binary linkers and loaders on each machine.  I agree with you heartily
that standardizing dynamic linking and loading would be a big step
forward.

	-s

Stavros Macrakis
Open Software Foundation Research Institute

Mail:  One Cambridge Center, Cambridge, MA 02142, USA
Net:   macrakis@osf.org
Phone: + 1 / 617 / 621 7356
Fax:   + 1 / 617 / 621 8696


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

* Re: ANDF - some information
  1993-12-07 16:38             ` Stavros Macrakis
@ 1993-12-07 22:24               ` Robert Dewar
  1993-12-08  4:35                 ` Ed McClanahan
                                   ` (2 more replies)
  1993-12-09  8:41               ` Rick Richardson
  1 sibling, 3 replies; 68+ messages in thread
From: Robert Dewar @ 1993-12-07 22:24 UTC (permalink / raw)


Of course another way of generating compilers for innovative languages is
to make new front ends for GCC, but then of course you can't sell them
and make lots of money! As I noted before, a lot of what ANDF is about is
duplicating existing open technology in a manner that allows it to be kept
proprietary. That's not in itself objectionable, unless you follow Richard
Stallman's line of thinking to its ultimate conclusion, but it's worth
being aware of this fact. At one point, someone enquired whether FSF would
be doing an ANDF backend for GCC. THe answer of course is that FSF is
certainly not interested in such a project, but that doesn't stop someone
else doing it.



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

* Re: ANDF - some information
  1993-12-07 22:24               ` Robert Dewar
@ 1993-12-08  4:35                 ` Ed McClanahan
  1993-12-08 10:15                   ` Richard Kenner
  1993-12-08 15:47                 ` Piercarlo Grandi
  1993-12-08 16:03                 ` John R Levine
  2 siblings, 1 reply; 68+ messages in thread
From: Ed McClanahan @ 1993-12-08  4:35 UTC (permalink / raw)


In article <2e2vqv$pea@schonberg.cs.nyu.edu> dewar@cs.nyu.edu (Robert Dewar) writes:

>Of course another way of generating compilers for innovative languages is
>to make new front ends for GCC, but then of course you can't sell them
>and make lots of money! As I noted before, a lot of what ANDF is about is
>duplicating existing open technology in a manner that allows it to be kept
>proprietary. That's not in itself objectionable, unless you follow Richard
>Stallman's line of thinking to its ultimate conclusion, but it's worth
>being aware of this fact. At one point, someone enquired whether FSF would
>be doing an ANDF backend for GCC. THe answer of course is that FSF is
>certainly not interested in such a project, but that doesn't stop someone
>else doing it.

Robert, did you really mean to write such flame bait?  Is your asbestos
suit functional?

Biting my tongue, I couple of points/corrections/opinions:

  Writing an ANDF backend for GCC would allow GCC-compiled software to run
  on any vendor's machine which has the requisite "ANDF Loader".  I don't
  see ANYTHING in this capability that goes against the FSF principals.
  Maybe FSF has some other reason to not be interested in constructing such
  a backend, but it is unclear what that is.

  Robert's statement that ANDF is about "duplicating existing open technology
  in a manner that allows *it* to be kept proprietary" is ambiguous.  Of
  course ANDF enables a software vendor the ability to keep their *proprietary*
  software *proprietary*.  Nobody is trying to keep duplicated "existing open
  technology" proprietary as the "it" (my emphasis, not Robert's) in the
  sentence implied (perhaps unintentionally).
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

  Edward McClanahan                    edm@wrs.com
  Wind River Systems, Inc.
  1010 Atlantic Avenue                 Phone: (510)814-2144
  Alameda, CA    94501                 Fax:   (510)814-2010


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

* Re: ANDF - some information
  1993-12-08  4:35                 ` Ed McClanahan
@ 1993-12-08 10:15                   ` Richard Kenner
  0 siblings, 0 replies; 68+ messages in thread
From: Richard Kenner @ 1993-12-08 10:15 UTC (permalink / raw)


In article <edm.170.0014990E@wrs.com> edm@wrs.com (Ed McClanahan) writes:
>  Writing an ANDF backend for GCC would allow GCC-compiled software to run
>  on any vendor's machine which has the requisite "ANDF Loader".  I don't
>  see ANYTHING in this capability that goes against the FSF principals.
>  Maybe FSF has some other reason to not be interested in constructing such
>  a backend, but it is unclear what that is.

"The FSF" is not a homogenious organization, but many, perhaps most,
people associated with the FSF believe that the presence of a scheme
like ANDF does nothing to encourage vendors to distribute their software
in source form.  To the extent that it provides an alternate technical
solution to problems that might otherwise require such distribution, it
actually discourages it.

Thus it goes against the basic goals of the FSF.

Technically, there doesn't seem to be much of a point in writing a GCC
backend that generates ANDF since GCC already has a backend for the
vast majority of machines, so this doesn't at all seem to enhance the
portability of GCC.  Instead, it would help "software hoarders" by 
letting them use GCC to compile their programs for ANDF.  That's why
many within the FSF are not comfortable helping such projects.


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

* Re: ANDF - some information
  1993-12-01 10:24 ANDF - some information John Maccallum
  1993-12-01 14:17 ` Rick Richardson
  1993-12-06  8:03 ` Dave Yost
@ 1993-12-08 10:45 ` Ronald F. Guilmette
  1993-12-10 16:49   ` peter da silva
  2 siblings, 1 reply; 68+ messages in thread
From: Ronald F. Guilmette @ 1993-12-08 10:45 UTC (permalink / raw)


In article <JOHN.93Dec1102438@brandywine.dra.hmg.gb> john%isis@hermes.dra.hmg.gb writes:
>This article appeared on comp.compilers a couple of weeks ago.  Please
>send any email replies to the address given below (not to me!).
>
>_____________________________________________________________________________
>There have been occasional references to ANDF on Usenet. There have
>been some common questions about ANDF's capabilities and questions
>about availability of documentation and software. I can provide some
>answers to the questions and a source for documentation. 
>
>I am the TDF project manager at DRA (Defence Research Agency) at
>Malvern in the UK. We were selected by the OSF's RFT (Request for
>Technology) process as the technology supplier for ANDF. Our
>technology is called TDF (TenDRA Distribution Format - where TenDRA
>is the trademark we apply to all our software that implements ANDF).
>
>There are three common comments about ANDF:
>
>1) ANDF will fail for the same reasons as UNCOL and pcode did.
>
>2) Run-time performance of applications compiled through ANDF will be
>unacceptably slow (because of lowest common denominator code).
>
>3) who needs an ANDF anyway? - e.g. CD-ROM solves the distribution
>problem.
>
>I will address these issues in order:

Correction:  You will adress the first two and attempt to totally skirt the
last one.

[... much drivel deleted...]

>3) distribution, who needs it? 
>
>The first thing to say is that ANDF offers considerable advantages over
>CD-ROM.

Why are you focusing on distribution media?  In the software business,
the mere media is the *last* thing that anybody gives a damn about.

> A CD-ROM does not help with yet-to-be-released systems.

Oh.  I see.  But ANDF will make it possible to sell software for systems
that don't even exist yet, eh?  This, despite the fact that I've never
even *tested* my software on these non-existant platforms, eh?  Boy!
Now that *is* magic! :-)

>Multiple copies may be desired on CD-ROM for different variants or
>implementations of the same architecture (e.g. 32 & 64 bit versions,
>differing instruction scheduling rules, or to avoid emulation traps for
>complex instructions on low end implementations).  Then there is the
>possibility of different object file formats (e.g. for UNIX and NT).
>CD-ROMs are not of infinite size, who falls off the end? The logistics
>of putting a multi architecture CD-ROM together will be pretty horrible.

Have you ever heard of tapes?  Have you ever heard of floppies?

Honestly, this ANDF stuff is the biggest bunch of... well... "salesmanship"
I've encountered in all my years in this business.

It's obvious that you ANDF proponents have given up some of your more
grandiose claims, and now your down to simply holding out the promise
(to software vendors) of relieving them of the expense of cutting a
longer tape or cutting an extra CD-ROM (in the remote eventuality that
anyone should ever figure out how to completely fill up just ONE)!

My advice:  Give it up.  Few (if any) software vendors are going to
spend a zillion more bucks and *also* accept the hassle of all of this
additional complexity just to save a few bucks per copy in reproduction
costs.

In the software game it has *always* been true that the cost of *creating*
software far outweighs the cost of reproducing or distributing it.  So
even if ANDF *could* save people a buck or two in reproduction costs,
who cares?  You're down in the noise level as far as I can see.  (And
that will be even *more* true in the near future, when software will be
distributed electronically via the comming information superhighway).

>The tools we have built for ANDF have benefits even if an ISV still
>intends to ship non-ANDF versions of their software (on a CD-ROM or
>whatever). The non-distribution benefits of using ANDF tools will in
>the short term be more visible than ANDF's use for distribution.
>Distribution remains an important but longer term objective.

OK.  For a minute there I thought that you were selling me something to
wash my car.  Now I see that you're really selling me something to shine
my shoes.  *Now* I understand! :-)

>The two immediate uses of ANDF that we believe will precede software
>distribution are (1) for API definition and checking, and (2) as aid
>to writing portable applications. 

Maybe when you figure out what your real goal for this project is you can
try to focus on that one goal and produce a good product to meet that goal.
In the meantime however it seems rather silly for you to tell me that (if
it is held correctly) this screwdriver you are selling me can also be used
to pound nails.  I suppose it can, but there are better tools for that job,
thank you.

-- 

-- Ronald F. Guilmette, Sunnyvale, California -------------------------------
------ domain address: rfg@netcom.com ---------------------------------------
------ uucp address: ...!uunet!netcom.com!rfg -------------------------------


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

* Re: ANDF - some (mis)information
  1993-12-02 15:49       ` Robert Dewar
  1993-12-02 21:24         ` Simon Patience
@ 1993-12-08 10:56         ` Ronald F. Guilmette
  1993-12-08 19:43           ` Donald Lindsay
                             ` (2 more replies)
  1 sibling, 3 replies; 68+ messages in thread
From: Ronald F. Guilmette @ 1993-12-08 10:56 UTC (permalink / raw)


In article <2dl2qs$6ks@schonberg.cs.nyu.edu> dewar@cs.nyu.edu (Robert Dewar) writes:
>
>Even granting the need to keep distributed code proprietary, one wonders
>if something like Gimpel's C-shroud would fill the need.

This is *the* primary point which the ANDF proponents have consistantly
shown a complete unwillingness and/or inability to address.

This is also the exact point which proves that ANDF is not merely a
commercial flop, but also a technical flop.  Adequate (and simple)
methods for solving the exact same problem (e.g. Gimpel's C-shroud)
already existed (or had been postulated) even before the ANDF crowd
setup a big and expensive research effort to "study the issue".

-- 

-- Ronald F. Guilmette, Sunnyvale, California -------------------------------
------ domain address: rfg@netcom.com ---------------------------------------
------ uucp address: ...!uunet!netcom.com!rfg -------------------------------


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

* Re: ANDF - some information
  1993-12-02 21:24         ` Simon Patience
  1993-12-06  7:58           ` Dave Yost
@ 1993-12-08 11:23           ` Ronald F. Guilmette
  1993-12-08 17:05             ` Simon Patience
  1 sibling, 1 reply; 68+ messages in thread
From: Ronald F. Guilmette @ 1993-12-08 11:23 UTC (permalink / raw)


In article <2dlmdu$iaf@paperboy.osf.org> sp@canal.osf.org (Simon Patience) writes:
>In article <2dl2qs$6ks@schonberg.cs.nyu.edu>, dewar@cs.nyu.edu (Robert Dewar) writes:
>> Even granting the need to keep distributed code proprietary, one wonders
>> if something like Gimpel's C-shroud would fill the need.
>> 
>> P.S. this is awfully heavily cross posted! Since I read it on comp.lang.ada
>> I will ask an Ada-relevant question, namely would there be any value in
>> an Ada-shroud with similar intentions to the C-shroud (thoroughly mask
>> and disguise the intention of the source).
>
>You could always replace these N (1 per language) shrouds (which require an
>unshrouder...

Mr. Patience, I hope you will forgive me for saying so, but you have just
succeded in demonstrating your ignorance of simple "shrouding" techniques.

There is no such thing as an "unshrouder", nor is one needed.  Compilers
do not care if they see programs containing identifiers like "Accounts_
Payable" or identifiers like "xyzzy0037".  The code will perform the exact
same function either way.

>... and N compilers on the target machines)...

I see.  So you are suggesting that some vendor will come out with a new
kind of machine and will produce *no* actual higher-level-language compilers
for it, yes?  Do you really believe that this will ever happen?  Have you
perhaps been residing on some other planet for the past 20 years?

>...with one ANDF installer
>on each target machine and N producers (1 per language) on one source machine.

I agree that if some company wanted to produce some new machine and inten-
tionally wanted to keep it totally devoid of "native" compilers, then some
expense might conceivably be saved under the scenario you have described.

The fact is however that this will NEVER happen here in the real world.

Even if the hardware vendor doesn't wish to create compilers for some
particular languages (for the vendor's new hardware) if the machines in
question are even marginally successful, third party compiler vendors
will rapidly rush in to fill the breach, and thus, no savings from this
UNCOL... ummm... excuse me... ANDF scheme will ever actually emerge.

Note also that even if this *didn't* happen, it would be pretty damned
embarassing for a vendor of brand X computers to have to tell his customers
to go buy a brand Y platform (to use as a "source machine", as you put it)
if they want to develop any software for brand X computers.  I really doubt
that any executive of any brand X hardware firm would ever allow such an
embarrasing (and self-defeating) marketing situation to arise.

-- 

-- Ronald F. Guilmette, Sunnyvale, California -------------------------------
------ domain address: rfg@netcom.com ---------------------------------------
------ uucp address: ...!uunet!netcom.com!rfg -------------------------------


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

* Re: ANDF - some information
  1993-12-07 22:24               ` Robert Dewar
  1993-12-08  4:35                 ` Ed McClanahan
@ 1993-12-08 15:47                 ` Piercarlo Grandi
  1993-12-09  3:57                   ` Mark H. Johnson
  1993-12-08 16:03                 ` John R Levine
  2 siblings, 1 reply; 68+ messages in thread
From: Piercarlo Grandi @ 1993-12-08 15:47 UTC (permalink / raw)


>>> On 7 Dec 1993 17:24:31 -0500, dewar@cs.nyu.edu (Robert Dewar) said:

Robert> As I noted before, a lot of what ANDF is about is duplicating
Robert> existing open technology in a manner that allows it to be kept
Robert> proprietary.

Actually the main problem of ANDF is that is promises to make a lot of
sw & hw technology _less_ "proprietary". That is its main problem.

ANDF as it exists is an interesting attempt to distribute sw in some
sort of intermediate compiler oriented representation; there is nothing
technically wrong with that; I read one that some people have separated
the from and back end parts of GCC, and RTL is about as plausible an
andf as ANDF itself.

The main problem with ANDF is of course the marketing implications: the
last thing the main workstation hw & sw vendors want is any sort of
universal distribution format. As of now each machine defines a market
segment and each sw vendor for worstations have carved their own little
nice niche; some people dominate one segment and some people dominate
another. Any andf risks introducing lots more competition across the
board, and by destroying segmentation to reduce prices and margins.

Only a few vendors compete across all platforms, and they are those that
hate the most the idea of an andf: a large part of Oracle's competitive
advantage in the eyes of any vertical reseller that condiers it is that
their product is available for nearly every machine; an andf would give
the same advantage to all of Oracle's competitors for nearly free.

An andf also raises the specter of lots more "piracy": as of now if you
buy a package for architecture X and then you switch to architecture Y
you must buy the package again or pay a rich "upgrade" fee. With andf
you could just your rerun the installer, thus hitting the income of the
sw vendors and making users readier to switch hw brands.

An andf is also a bad move for the dominant hw market players: as the
DRA person that originated this thread remarked, an andf would
substantially lower the barriers to entry in the workstation market, as
it would reduce to near zero the cost of building up a vast portfolio of
portings (I seem to remember that IBM spent _billions_ in porting fees
and expenses to build up a large catalog for the RS/6000), which is
vital to gain market acceptance. No major hw player is ready to regale
such an advantage to upstarts (except perhaps for Sun, and even then
half bakedly).

In practice the only people that could benefit from an andf are the end
users; but ANDF is being developed by a sw/hw producers' association,
which is rather curious and hazard fraught situation, and to succeed it
ought to be adopted by the same people (the main hw and sw suppliers)
that currently dominate the status quo and have reason to fear the most
from any change in it.


Naturally there is one last small but vital point: even if hw and sw
vendors in the workstation market have nothing to gain from an andf, and
a lot to lose, they must contemplate introducing it to stave off losing
their customers to one market where there is one de facto andf much
beloved by users and that largely dominates hw and sw sales by volume
and in dollars: the .COM/.EXE "andf".

Workstation sw and hw vendors are between a rock and a hard spot: if
they do support ANDF they risk introducing a lot of margin depressing
competition in the workstation market, if they don't they risk seeing
the workstation market eaten away by PC sales (can you say Windows/NT?),
where an "andf" exists and is much beloved by users because it engenders
a lot of competition in both hw and sw and thus low prices and huge
volumes.

The history of companies that have carved themselves nice little
small-volume and high-margin niches is always the same: they will go
under or at least lose colossal amounts of money before they even
consider switching to a low-margin and high-volume (see DEC, IBM, Compaq
and Apple for late demonstrations of the principle) style of operation.

I think that therefore it's fair to assume that ANDF will remain on the
shelf, kept there as a last ditch defensive move against Windows/NT,
until it's way too late.


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

* Re: ANDF - some information
  1993-12-07 22:24               ` Robert Dewar
  1993-12-08  4:35                 ` Ed McClanahan
  1993-12-08 15:47                 ` Piercarlo Grandi
@ 1993-12-08 16:03                 ` John R Levine
  1993-12-08 23:24                   ` Robert Dewar
  2 siblings, 1 reply; 68+ messages in thread
From: John R Levine @ 1993-12-08 16:03 UTC (permalink / raw)


>At one point, someone enquired whether FSF would be doing an ANDF backend
>for GCC. THe answer of course is that FSF is certainly not interested in
>such a project, but that doesn't stop someone else doing it.

Rich Ford at OSF has done an ANDF back end for GCC.  There's a paper on it
in with the other ANDF documents.

The FSF's to-do wish list says they'd like a translator that turns ANDF
back into C.

Regards,
John Levine, johnl@iecc.com, {spdcc|ima|world}!iecc!johnl
-- 
John R. Levine, IECC, POB 349, Cambridge MA 02238, +1 617 492 3869
johnl@iecc.com, {ima|spdcc|world}!iecc!johnl
"Space aliens are stealing American jobs." - MIT econ professor


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

* Re: ANDF - some information
  1993-12-08 11:23           ` Ronald F. Guilmette
@ 1993-12-08 17:05             ` Simon Patience
  1993-12-09 12:33               ` John Krueger
  0 siblings, 1 reply; 68+ messages in thread
From: Simon Patience @ 1993-12-08 17:05 UTC (permalink / raw)


In article <rfgCHprMs.HI2@netcom.com>, rfg@netcom.com (Ronald F. Guilmette) writes:
> In article <2dlmdu$iaf@paperboy.osf.org> sp@canal.osf.org (Simon Patience) writes:
> >You could always replace these N (1 per language) shrouds (which require an
> >unshrouder...
> 
> Mr. Patience, I hope you will forgive me for saying so, but you have just
> succeded in demonstrating your ignorance of simple "shrouding" techniques.
> 
> There is no such thing as an "unshrouder", nor is one needed.  Compilers
> do not care if they see programs containing identifiers like "Accounts_
> Payable" or identifiers like "xyzzy0037".  The code will perform the exact
> same function either way.

I doubt any ISV would consider that shrouding, certainly not adequately enough
to protect their intellectual property.

> >... and N compilers on the target machines)...
> 
> I see.  So you are suggesting that some vendor will come out with a new
> kind of machine and will produce *no* actual higher-level-language compilers
> for it, yes?  Do you really believe that this will ever happen? 

No, nor did I ever say anything of the sort. If I have an application written
in some obscure language and have one machine that has an ANDF producer for
that language then I don't need to worry if no other machine on the planet
had a compiler for that language. 

> Have you
> perhaps been residing on some other planet for the past 20 years?

This sort of comment seems to sum up the style and quality of your arguments.

> >...with one ANDF installer
> >on each target machine and N producers (1 per language) on one source machine.
> 
> I agree that if some company wanted to produce some new machine and inten-
> tionally wanted to keep it totally devoid of "native" compilers, then some
> expense might conceivably be saved under the scenario you have described.

How about not "intentionally keep it totally devoid of native compilers" but
haven't had the time/resources to produce them all yet. It takes time to
write compilers for new architectures.

> The fact is however that this will NEVER happen here in the real world.

Funny I could have sworn I have used machines that didn't support every
know programming language. Obviously I was on another planet at the time.

> Note also that even if this *didn't* happen, it would be pretty damned
> embarassing for a vendor of brand X computers to have to tell his customers
> to go buy a brand Y platform (to use as a "source machine", as you put it)
> if they want to develop any software for brand X computers.  I really doubt
> that any executive of any brand X hardware firm would ever allow such an
> embarrasing (and self-defeating) marketing situation to arise.

This is not even what people are saying, if you ever calmed down long enough
to read their posts. 

Simon.

-- 
  Simon Patience				Phone: (617) 621-7376
  Open Software Foundation			FAX:   (617) 621-8696
  1 Cambridge Center				Email: sp@osf.org
  Cambridge, MA 02142				       uunet!osf!sp


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

* Re: ANDF - some (mis)information
  1993-12-08 10:56         ` ANDF - some (mis)information Ronald F. Guilmette
@ 1993-12-08 19:43           ` Donald Lindsay
  1993-12-09 19:20             ` Hans Boehm
  1993-12-08 20:56           ` Steven Correll
  1993-12-14 19:30           ` ANDF - some (mis)information Matt Kennel
  2 siblings, 1 reply; 68+ messages in thread
From: Donald Lindsay @ 1993-12-08 19:43 UTC (permalink / raw)



In article <rfgCHpqEE.GtD@netcom.com>,
Ronald F. Guilmette <rfg@netcom.com> wrote:
>Adequate (and simple)
>methods for solving the exact same problem (e.g. Gimpel's C-shroud)
>already existed (or had been postulated) even before the ANDF crowd
>setup a big and expensive research effort to "study the issue".

C-shroud solves a different problem.

For one thing, ANDF can be the target of multiple languages. I am
indeed aware that several languages have been implemented with C as
their compiler's output. Bleah: the result is often less than
satisfactory. I will admit that I haven't seen enough of ANDF to be
sure that it's better. But at least it's *supposed* to be. Nowhere
does C have a spec that says it should be a good notation for
programs with (say) exceptions, multithreading, and garbage
collection. And think about FORTRAN.

There are also code quality issues. In short, we'd want many
shrouders, and then we've given away some of the hoped-for benefits.





-- 
Don		D.C.Lindsay	Carnegie Mellon Computer Science


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

* Re: ANDF - some information
  1993-12-06  7:58           ` Dave Yost
  1993-12-07 16:38             ` Stavros Macrakis
@ 1993-12-08 20:48             ` Matt Kennel
  1993-12-09 12:24               ` Torben AEgidius Mogensen
  1 sibling, 1 reply; 68+ messages in thread
From: Matt Kennel @ 1993-12-08 20:48 UTC (permalink / raw)


Dave Yost (Dave@Yost.COM) wrote:
: In article <2dlmdu$iaf@paperboy.osf.org> sp@canal.osf.org (Simon Patience) writes:
: >In article <2dl2qs$6ks@schonberg.cs.nyu.edu>, dewar@cs.nyu.edu (Robert Dewar) writes:
: >> Of course from one point of view, ANDF technology is completely redundant,
: >> since we already have the necessary technology: C as the distribution medium
: >> and C compilers as the installers.
: >
: >ANDF however is not limited to the C language.
: >
: >You could always replace these N (1 per language) shrouds (which require an
: >unshrouder and N compilers on the target machines) with one ANDF installer
: >on each target machine and N producers (1 per language) on one source machine.

: One nice side effect if ANDF succeeds might be that it could
: ease the stranglehold of C and C++.

: In other words, if ANDF makes a wonderful new standard
: intermediate language come into being with great code
: generators for all platforms, then a creator of an
: alternative languages could make their language instantly
: available on all platforms.  This would make it much easier
: for a non-C/C++ language to be taken seriously and used
: without many of the worries currently attending alternative
: languages.

Is it true that there is *one* ANDF output generator per target machine---
independent of source language?

I find this hard to believe because I can't imagine any single represenation
being good for all sorts of diverse languages---go beyond just C/C++ and
Fortran77.  What about Ada?  Fortran/Ada 9x? What about Eiffel?  What about
Lisp?  What about ML?  What about Maple? Matlab?  Can a single semantic model
really do all these justice?  

Does ANDF actually try this?  Or are there separate "C"/"Fortran"/"Ada"
/language dependent generators?  generators?  If it's the first, then I
suspect it will end up being good only for C and Fortran and similar
derivatives, and would only entrench C and C++.

If it's the second, then where's the gain?  You have separate output programs
for C-Alpha, C-Sparc, Eiffel-HP, Ada-RS6000, C++-Intel, et cetera just like
now.

The only difference is that different people are independently writing the
front end and the back end.  Is this a good idea?  (Compiler vendor:"Well
our compiler works with V2.1.4 of the ANDF/C/Sparc back end but when they
upgraded it to 2.2.1 it doesn't work any more, but it's not *our* fault,
we're following the rules.  We have an internal hack that makes it work on
Sparc V.2.2.1, but that breaks the code generator for HP's under HPUX 12.14,
because they're still on ANDF/C/HP 2.0.7."  ANDF: "The change was done to
implement an optimization for Vendor XYZ on the Intel Sexium; your Vendor is
making unwarranted assumptions about the Sparc that aren't valid on
segmented architectures, even though they improve performance on Sparcs."
Compiler Vendor: "Why should ANDF/Sparc semantics change for Intel's
benefit?"  ANDF: "We want to maintain a single ANDF/C source tree." User:
"But I don't have an Intel!  I have a Sparc and I want my compiler to work,
dammit!" )  Am I being too cynical? :-)

What happens when the front-end writer wants to transmit more semantic
information than before (to improve optimization) but the ANDF/C spec
doesn't admit such a notion?

Honestly, I'm confused.  What exactly does ANDF do?  How does it solve the
above problems?

: (For those of you new to this cross-posted thread, there is
: an interesting long posting on the status of ANDF on
: comp.unix.osf.misc.)

: -- 
:   Dave Yost
:       @    .COM

--
-Matt Kennel  		mbk@inls1.ucsd.edu
-Institute for Nonlinear Science, University of California, San Diego
-*** AD: Archive for nonlinear dynamics papers & programs: FTP to
-***     lyapunov.ucsd.edu, username "anonymous".


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

* Re: ANDF - some (mis)information
  1993-12-08 10:56         ` ANDF - some (mis)information Ronald F. Guilmette
  1993-12-08 19:43           ` Donald Lindsay
@ 1993-12-08 20:56           ` Steven Correll
  1993-12-09  2:32             ` John R. Mashey
  1993-12-10 20:20             ` peter da silva
  1993-12-14 19:30           ` ANDF - some (mis)information Matt Kennel
  2 siblings, 2 replies; 68+ messages in thread
From: Steven Correll @ 1993-12-08 20:56 UTC (permalink / raw)


I have a couple of questions about ANDF.

1. Today before a vendor ships shrink-wrapped software in volume, s/he
tests extensively to ensure that customers won't wipe out profits by
swamping the tech support department with bug reports.  Vendors employ
(at best) large regression suites or (at least) large QA departments to
accomplish this. Today the (sorry) assumption that every target machine
is an IBM-compatible PC simplifies this task, but even so, the vendor
I'm familiar with uses a variety of popular clones just in case they're
different enough to reveal new bugs.

In the world envisioned by OSF for ANDF, how does a vendor ensure that
a customer won't use an ANDF back-end which the vendor never used during
testing, generating bugs which the vendor never saw? I'm
pretty sure such bugs can occur, because even if we suppose that the
back-ends are stable and bug-free, a bug in the vendor's program (such
as an uninitialized variable, an unwarranted assumption about the
packing of data, an endianness dependency, etc.) may manifest itself on
some target systems but not others.

	-- Does OSF posit only one back end for each target system?
	-- Does the vendor list on the back of the box of software the
	   particular target systems (and back-end version numbers) used
	   to test the software, with a disclaimer saying that it is not
	   warranted to work on others?
	-- Does OSF propose to publish a list of authorized back-ends,
	   with each vendor expected to test with every one, even if
	   some of them have very little market share?
	-- Does OSF expect that the vendor will test with one or more
	   "interesting" back ends and then everybody crosses their
	   fingers and hopes the number of bugs unique to untested
	   target systems is small?

2. Does OSF expect most optimization to occur before generation of ANDF,
or in the back end? If the former, then ANDF does not ensure a "level
playing field" for new languages and architectures, because there will
be more incentive to work on optimization in the ANDF-generators for
popular languages and architectures. If the latter, then the back ends
are less likely to be stable and bug-free, simply because there's
always an incentive to issue a new revision to incorporate just one
more optimization, and because (no offense to optimization technology)
revision makes bugs more likely.
-- 
Steven Correll == PO Box 66625, Scotts Valley, CA 95067 == sjc@netcom.com


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

* Re: ANDF - some information
  1993-12-08 16:03                 ` John R Levine
@ 1993-12-08 23:24                   ` Robert Dewar
  0 siblings, 0 replies; 68+ messages in thread
From: Robert Dewar @ 1993-12-08 23:24 UTC (permalink / raw)


These two tools together (an ANDF backend for GCC, plus an ANDF to C 
translator) should make a mighty fine C-obfuscator when used in combination
:-)
\x1a


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

* Re: ANDF - some (mis)information
  1993-12-08 20:56           ` Steven Correll
@ 1993-12-09  2:32             ` John R. Mashey
  1993-12-10  2:43               ` Keith Smith
  1993-12-10 20:20             ` peter da silva
  1 sibling, 1 reply; 68+ messages in thread
From: John R. Mashey @ 1993-12-09  2:32 UTC (permalink / raw)


In article <sjcCHqI5t.DAB@netcom.com>, sjc@netcom.com (Steven Correll) writes:
|> I have a couple of questions about ANDF.
|> 
|> 1. Today before a vendor ships shrink-wrapped software in volume, s/he
|> tests extensively to ensure that customers won't wipe out profits by
|> swamping the tech support department with bug reports.  Vendors employ

Good comments; reality always intrudes.

To be really clear, I know of serious vendors who statically link
all math libraries into their application, because they won't take the
chance of linking with a dynamic-shared-object that might possibly be
changed on them....

On the other hand, for something sort of like ANDF that already works,
I recall the ParcPlace folks compile Smalltalk into bytecodes that
can then be used portably on any amchine for which their interpreter
is available.  


-- 
-john mashey    DISCLAIMER: <generic disclaimer, I speak for me only, etc>
UUCP:    mash@sgi.com 
DDD:    415-390-3090	FAX: 415-967-8496
USPS:   Silicon Graphics 6L-005, 2011 N. Shoreline Blvd, Mountain View, CA 94039-7311


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

* Re: ANDF - some information
  1993-12-08 15:47                 ` Piercarlo Grandi
@ 1993-12-09  3:57                   ` Mark H. Johnson
  1993-12-09  9:41                     ` Todd P. Whitesel
  1993-12-09 17:11                     ` ANDF - some information Piercarlo Grandi
  0 siblings, 2 replies; 68+ messages in thread
From: Mark H. Johnson @ 1993-12-09  3:57 UTC (permalink / raw)


In article <PCG.93Dec8154713@frontb.aber.ac.uk>, pcg@aber.ac.uk (Piercarlo Grandi) writes:
> >>> On 7 Dec 1993 17:24:31 -0500, dewar@cs.nyu.edu (Robert Dewar) said:
> 
...stuff deleted

> Only a few vendors compete across all platforms, and they are those that
> hate the most the idea of an andf: a large part of Oracle's competitive
> advantage in the eyes of any vertical reseller that condiers it is that
> their product is available for nearly every machine; an andf would give
> the same advantage to all of Oracle's competitors for nearly free.
>

FYI, Oracle gave the ANDF team  a copy of our code to allow that team to "stress-
test" ANDF on a very large block of commercial code.  We have no particular 
interest in making basic porting as costly as possible.  Quite the contrary.

I would hope that a vertical reseller would select Oracle based on the features, 
stability and performance of our products.  We have several competitors who are 
quite capable of offering their products on the overwhelming majority of 
platforms users are interested in.

ANDF does not make software portable.  In fact, OSF has presented a seminar on 
that subject to enable the use of ANDF technology.  There are any number of non-
portable C constructs.  ANDF does not help if these constructs are used.  In addition,
every hardware vendor has done something special to make their platform more 
attractive.  Some tuning to a particular platform's features is required for a 
generic software application to compete effectively against a dedicated application.  
ANDF offers a fairly rich set of features to manage platform specific modifications 
in the context of one portable source.

By the way, the OSF-RI researchers built an ANDF version of the Oracle Server and 
several of the tools, and passed the validation tests on multiple platforms.

A related issue is "who owns the bugs?"  If ANDF offered pure portability, Oracle 
support could get a call saying "Oracle dumped core" and the dump might be for a 
processor and architecture we have never seen.  Now what?  Portability includes
a positive answer to the question: "Do you support it on this platform?"  
 
> An andf also raises the specter of lots more "piracy": as of now if you
> buy a package for architecture X and then you switch to architecture Y
> you must buy the package again or pay a rich "upgrade" fee. With andf
> you could just your rerun the installer, thus hitting the income of the
> sw vendors and making users readier to switch hw brands.
> 
This is nothing new.  Without ANDF, you buy software for some platform.  For Oracle
that may mean a price based on the capacity of the platform.  If you then upgrade 
the platform by purchasing a more capable member of the same architecture, you 
can technically copy over or reinstall the software on the new machine --possibly
violating your software license agreement.  

Alternatively, many Oracle platforms now offer user based pricing.  ANDF would 
actually enable technically what a number of our customers may be legally able to 
do already.

If the issue is enforcement of software license agreements, license management 
is a technology oriented solution with 
a lot more support of the real business  models.  There are non-
technology oriented solutions including, but not limited to, simply trusting 
most folks to do the right thing, and applying legal remedies as needed.  
(Works for MicroSoft and almost all of the rest of the PC software business.)
 
Please do not interpret this note as any kind of endorsement of ANDF by Oracle.  
This note is also not a statement of intent to support or not to support ANDF or 
any particular software licensing strategy.  
The opinions are mine, not Oracle's.

Mark H. Johnson                       
UNIX Product Line                              "Ports R Us"
Oracle Corporation


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

* Re: ANDF - some information
  1993-12-07 16:38             ` Stavros Macrakis
  1993-12-07 22:24               ` Robert Dewar
@ 1993-12-09  8:41               ` Rick Richardson
  1993-12-10 13:09                 ` Stefan Monnier
  1 sibling, 1 reply; 68+ messages in thread
From: Rick Richardson @ 1993-12-09  8:41 UTC (permalink / raw)


macrakis@osf.org (Stavros Macrakis) writes:

>In article <yostCHLst5.KoA@netcom.com> Dave@Yost.COM (Dave Yost) writes:

>   One nice side effect if ANDF succeeds might be that it could
>   ease the stranglehold of C and C++.

>Absolutely.  In fact, it makes for a "level playing field" where the
>technical merits of innovative languages like Eiffel and Dylan can be
>judged on their own, without worrying about availability of compilers.

AT&T leveled the field when C++ first came out by generating C
code as its intermediate language.  Once the langauge became
popular, native compilers became available.  I don't see the
need for ANDF to perform this function when the C language
already can do it.

-Rick
--
Rick Richardson		Senior Staff Engineer	NCSA Mosaic -
DigiBoard, Inc.		Email: rick@digibd.com	#1 reason for a national
6400 Flying Cloud Dr.	Fax:   (612) 943-0803	(toll-free) data highway.
Eden Prarie, MN 55344	Tel:   (612) 943-5383	<standard disclaimer>


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

* Re: ANDF - some information
  1993-12-09  3:57                   ` Mark H. Johnson
@ 1993-12-09  9:41                     ` Todd P. Whitesel
  1993-12-09 14:23                       ` Robert Dewar
                                         ` (3 more replies)
  1993-12-09 17:11                     ` ANDF - some information Piercarlo Grandi
  1 sibling, 4 replies; 68+ messages in thread
From: Todd P. Whitesel @ 1993-12-09  9:41 UTC (permalink / raw)


It's already been mentioned once, but I think it bears repeating:

There is already an ANDF of sorts in wide usage, and there already are
or will be implementations of it for Alpha, Mips, PowerPC, sparc, etc:

80386 assembly.

Todd Whitesel
toddpw @ ugcs.caltech.edu


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

* Re: ANDF - some information
  1993-12-08 20:48             ` Matt Kennel
@ 1993-12-09 12:24               ` Torben AEgidius Mogensen
  1993-12-10  1:23                 ` Larry Meadows
  0 siblings, 1 reply; 68+ messages in thread
From: Torben AEgidius Mogensen @ 1993-12-09 12:24 UTC (permalink / raw)


mbk%anl433.uucp@Germany.EU.net (Matt Kennel) writes:

>Is it true that there is *one* ANDF output generator per target machine---
>independent of source language?

I believe this is the case.

>I find this hard to believe because I can't imagine any single represenation
>being good for all sorts of diverse languages---go beyond just C/C++ and
>Fortran77.  What about Ada?  Fortran/Ada 9x? What about Eiffel?  What about
>Lisp?  What about ML?  What about Maple? Matlab?  Can a single semantic model
>really do all these justice?  

This is no worse than compiling all these languages to a single
machine architecture. The difficult part of designing a system like
ANDF is that it should be sufficiently far away from a specific
machine model that the constaints of that model does not hurt
performance on dissimilar machines, but also sufficiently low level
that it doesn't rely too much on a specific source language.

As I understand it (from my limited knowledge), ANDF is fairly
low-level, but allows many annotations that e.g. tell that a
particular pointer is not aliased, or limit the range of values etc.
This way, some of the "high-level" information that is traditionally
lost when compiling to a low-level language is retained.

Ada, Fortran and C are actually very similar, so I can see no problem
in providing a common base for these. Compiling technology for LISP
and ML on stock hardware is quite good nowadays, so using the same
base as the other languages should be no problem.

I think it is intended that optimization occurs both at the high
level, before generating ANDF, in ANDF itself, and when compiling ANDF
to a specific machine. The latter is neccesary, as register allocation
and instruction scheduling can't be done before you know the specific
machine architecture.

	Torben Mogensen (torbenm@diku.dk)


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

* Re: ANDF - some information
  1993-12-08 17:05             ` Simon Patience
@ 1993-12-09 12:33               ` John Krueger
  0 siblings, 0 replies; 68+ messages in thread
From: John Krueger @ 1993-12-09 12:33 UTC (permalink / raw)


In article 812@paperboy.osf.org, sp@canal.osf.org (Simon Patience) writes:
>In article <rfgCHprMs.HI2@netcom.com>, rfg@netcom.com (Ronald F. Guilmette) writes:
>> In article <2dlmdu$iaf@paperboy.osf.org> sp@canal.osf.org (Simon Patience) writes:
>> >...with one ANDF installer
>> >on each target machine and N producers (1 per language) on one source machine.
>> 
>> I agree that if some company wanted to produce some new machine and inten-
>> tionally wanted to keep it totally devoid of "native" compilers, then some
>> expense might conceivably be saved under the scenario you have described.
>
>How about not "intentionally keep it totally devoid of native compilers" but
>haven't had the time/resources to produce them all yet. It takes time to
>write compilers for new architectures.

Of course, you could write a compiler for language X in ANDF, and then you
simply install it on each new machine architecture as soon as you have the
ANDF installer written.  It may not be the fastest/most efficient in the
world, and I do not know if it would count as a native compiler, but it
would hold you over until you could do a better one in native machine code.

-------------------------------------------------------------------
Disclaimer: This was written by someone who didn't know any better,
and anyway was just blowing off hot air to reduce light-headedness.
krueger@cs.hope.edu * John Krueger * and GOD said: Let there be roo
-------------------------------------------------------------------








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

* Re: ANDF - some information
  1993-12-09  9:41                     ` Todd P. Whitesel
@ 1993-12-09 14:23                       ` Robert Dewar
  1993-12-09 16:09                         ` Thatcher Ulrich
  1993-12-10 18:02                       ` Jan Vorbrueggen
                                         ` (2 subsequent siblings)
  3 siblings, 1 reply; 68+ messages in thread
From: Robert Dewar @ 1993-12-09 14:23 UTC (permalink / raw)


Was there a smiley missing after the suggestion that 386 assembly language
be considered as a universal intermediate language. I hope so.

Sure there are (inefficient, pretty horrible) implementations being planned
for various machines, under the market pressure of having to run DOS
implementations, but from all technical points of view, 386 assembler
is universally worse than both C and ANDF (and almost anything else) as
a universal intermediate language.



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

* Re: ANDF - some information
  1993-12-09 14:23                       ` Robert Dewar
@ 1993-12-09 16:09                         ` Thatcher Ulrich
  0 siblings, 0 replies; 68+ messages in thread
From: Thatcher Ulrich @ 1993-12-09 16:09 UTC (permalink / raw)


Robert Dewar (dewar@cs.nyu.edu) wrote:
: Was there a smiley missing after the suggestion that 386 assembly language
: be considered as a universal intermediate language. I hope so.

: Sure there are (inefficient, pretty horrible) implementations being planned
: for various machines, under the market pressure of having to run DOS
: implementations, but from all technical points of view, 386 assembler
: is universally worse than both C and ANDF (and almost anything else) as
: a universal intermediate language.

And yet from a commercial and practical point of view it is very
attractive.  Let's see: technically a dog, but commercially
expedient... sounds like a winner!

-Thatcher
ulrich@world.std.com





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

* Re: ANDF - some information
  1993-12-09  3:57                   ` Mark H. Johnson
  1993-12-09  9:41                     ` Todd P. Whitesel
@ 1993-12-09 17:11                     ` Piercarlo Grandi
  1 sibling, 0 replies; 68+ messages in thread
From: Piercarlo Grandi @ 1993-12-09 17:11 UTC (permalink / raw)


>>> On 9 Dec 93 03:57:55 GMT, mhjohnso@oracle.com (Mark H. Johnson) said:

Mark> In article <PCG.93Dec8154713@frontb.aber.ac.uk>, pcg@aber.ac.uk
Mark> (Piercarlo Grandi) writes:

pcg> Only a few vendors compete across all platforms, and they are those
pcg> that hate the most the idea of an andf: a large part of Oracle's
pcg> competitive advantage in the eyes of any vertical reseller that
pcg> condiers it is that their product is available for nearly every
pcg> machine; an andf would give the same advantage to all of Oracle's
pcg> competitors for nearly free.

Mark> FYI, Oracle gave the ANDF team a copy of our code to allow that
Mark> team to "stress- test" ANDF on a very large block of commercial
Mark> code.

Very noble of Oracle. And I must confess rather surprising.

Mark> We have no particular interest in making basic porting as costly
Mark> as possible.  Quite the contrary.

This really surprises me. Unless you mean "porting should be as easy as
possible for us, nd as hard as possible for our competitors".

Mark> I would hope that a vertical reseller would select Oracle based on
Mark> the features, stability and performance of our products.

Yes, but "availability" is perhaps the first and most important metric,
I would say, for any vertical reseller. In this Oracle has a distinct
competitive advantage (it supports more architectures than everybody
else, simply because of sheer size), while instead it is arguable that
it has an obvious one in features, stability or performance: technical
expertise is not lacking at Oracle's competitors, unlike critical mass
and hordes of porters/testers. I am really surprised the you discount
the adantaages of sprawling size:

Mark> We have several competitors who are quite capable of offering
Mark> their products on the overwhelming majority of platforms users are
Mark> interested in.

But that is not the same as _developers_. A developer tries to have as
broad a (potential) market as possible, and as profitable as possible;
that does not necessarily mean that a developer for a given vertical
application goes for the largest number of users; they may well profit
by going for niches. A developer often hates saying to a customer:
"sorry, we cannot sell our product to you because the DB engine it uses
does not run on your machine". Selling to niches is more profitable than
selling to large numbers of users, _if_ you lack capital, and that is
the normal problem with many vertical resellers.

Mark> ANDF does not make software portable.  In fact, OSF has presented
Mark> a seminar on that subject to enable the use of ANDF technology.
Mark> There are any number of non- portable C constructs.  ANDF does not
Mark> help if these constructs are used.

Yes, of course -- but if the software is _already_ portable ANDF adds an
extra dimension of portability: you need only compile it once (perhaps
adding target specific optimizations for some important targets), then
the installer takes care, and you don't need to worry about the
installer.

In theory, that is -- in practice a publisher, having produced an ANDF
product, would want to try out installing it themselves on at least some
target platforms; at this point either the ANDF is truly an andf, and it
just works, or else it is not truly an andf, and does not insulate that
much publishers and users from the target architecture, and then it is
largely irrelevant. This is why your good point:

Mark> A related issue is "who owns the bugs?"  If ANDF offered pure
Mark> portability, Oracle support could get a call saying "Oracle dumped
Mark> core" and the dump might be for a processor and architecture we
Mark> have never seen.  Now what?  Portability includes a positive
Mark> answer to the question: "Do you support it on this platform?"
 
is ultimately not very interesting; if ANDF works well, the bugs caused
by ANDF will be many less than those caused by the traditional porting
process to the target architecture, and if it does not work well, who
cares about ANDF?

Mark> By the way, the OSF-RI researchers built an ANDF version of the
Mark> Oracle Server and several of the tools, and passed the validation
Mark> tests on multiple platforms.

This is a rather interesting bit of news. Compliments to Oracle and the
OSF.

pcg> An andf also raises the specter of lots more "piracy": as of now if
pcg> you buy a package for architecture X and then you switch to
pcg> architecture Y you must buy the package again or pay a rich
pcg> "upgrade" fee. With andf you could just your rerun the installer,
pcg> thus hitting the income of the sw vendors and making users readier
pcg> to switch hw brands.

Mark> This is nothing new.  Without ANDF, you buy software for some
Mark> platform.  For Oracle that may mean a price based on the capacity
Mark> of the platform.

That is for Oracle -- other publishers have other policies. Also, a lot
of sw is published by hw manufacturers. Perhaps they don't want to
hasten their separation into sw publishing and hw manufacturing
businesses, as Sun has started to do, thanks to using the "andf" called
x86 architecture.

Mark> If you then upgrade the platform by purchasing a more capable
Mark> member of the same architecture, you can technically copy over or
Mark> reinstall the software on the new machine --possibly violating
Mark> your software license agreement.

True enough, but ANDF expands the scope into a completely new
dimension. Sw publishers already worry enough about "piracy", perhaps
they don't want to worry more. You seem to indicate, unofficially, that
Oracle is not that worried; this is an enlightened attitude, I'd wish it
were common.

Note that I write "piracy" within quotes; what I am implying is that
many sw publishers fell they would be forced by an andf to change their
licensing strategies, perhaps more towards the one adopted by Oracle,
and thus to make legal what now they would regards as "piracy".

Mark> If the issue is enforcement of software license agreements,
Mark> license management is a technology oriented solution with a lot
Mark> more support of the real business models.

I would surmise that if ANDF contained any sort of very reliable license
management or copy protection, many sw publishers would adopt it far
more enthusiastically; but then a lot of its appeal to _users_ would be
negated.

What use is an architecture neutral distribution format shrinkwrapped
application to a user if license management were to prevent it to be
freely installed on any architecture? It would be useful only to
publishers: reduce the complications of porting and have a single format
in stock good for any architecture. Well, interesting enough, but not as
wonderful to users.

All in all I see that ANDF is here and mre or less works (your news that
and ANDF version of Oracle has succeeded is rather encouraging, to say
the least), but that there is no rush by publishers to offer ANDF
"binaries" and from hw manufacturers to offer installers. They can well
argue that the reason for this is no market demand, but this goes
against all the claims that "shrinkwrapped" is very attractive to
users. Time will tell...

And Windows/NT ought to wake up anybody who is recalcitrant. Consider
this: as of now NT will be available on _all_ major workstations. Delude
yourself that it will be a roaring success :-), and that sw publishers
will offer lots of packages for it. Which binary format should they
offer those packages? I'd bet NT/86, as it would cover directly the 90%
of the NT market, and cover the smallish other segments for NT/MIPS,
NT/Alpha, ..., which are all supposed to have 86 emulators, even if
slowish.

NT sw publishers are all the same that publish for Windows 3 and so on,
and they are used to huge-colume/low-margin publishing in a large market
based on a single binary standard, and I doubt they would feel any
qualms about ANDF.

Perhaps OSF should take ANDF and offer it to Microsoft for NT: much
larger volume than Unix, perhaps, and it would neatly solve the problem
of the sluggishness of the emulators. Would that problem be worth
distributing all NT packages in ANDF format, that is also to x86
customers?  Probably not. But perhaps ANDF/NT would cut to two the
binary formats, to NT/86 and NT/ANDF. Would it be worth it?


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

* Re: ANDF - some (mis)information
  1993-12-08 19:43           ` Donald Lindsay
@ 1993-12-09 19:20             ` Hans Boehm
  0 siblings, 0 replies; 68+ messages in thread
From: Hans Boehm @ 1993-12-09 19:20 UTC (permalink / raw)


lindsay+@cs.cmu.edu (Donald Lindsay) writes:

>For one thing, ANDF can be the target of multiple languages. I am
>indeed aware that several languages have been implemented with C as
>their compiler's output. Bleah: the result is often less than
>satisfactory. I will admit that I haven't seen enough of ANDF to be
>sure that it's better. But at least it's *supposed* to be. Nowhere
>does C have a spec that says it should be a good notation for
>programs with (say) exceptions, multithreading, and garbage
>collection. And think about FORTRAN.

The top 3 complaints I have about using C as an intermediate language
are:

1. Compilation time.
2. Debugging problems.
3. The optimizer knows nothing about garbage collection. 
(Even the instruction scheduler should know a little about garbage
collection.)

I think this is similar to the list you would get from most Cedar, SRC
Modula-3 and Sather users.

(For numerical code, loss of aliasing information also matters.  The
current Cedar compiler generates C code that runs in a multithreaded
environment without problems, as does SRC Modula-3.  Exception handling takes a
performance hit, but that's not that major, based on profiles I've seen. I've
seen some other minor losses in code quality, but those seemed to be due
more to inattention by C compiler writers to features they thought
should be infrequent.  I would expect ANDF with a nonC front-end to
share that problem.)

It seems to me that ANDF probably makes point 2 worse.  Can anybody
verify that it helps with the other two?  (I assume it does fix the
problem with aliasing information, but I suspect that's secondary
for many applications.)

Hans-J. Boehm
(boehm@parc.xerox.com)
Standard disclaimer ...


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

* Re: ANDF - some information
  1993-12-09 12:24               ` Torben AEgidius Mogensen
@ 1993-12-10  1:23                 ` Larry Meadows
  1993-12-10 11:42                   ` Bruce Stephens
  0 siblings, 1 reply; 68+ messages in thread
From: Larry Meadows @ 1993-12-10  1:23 UTC (permalink / raw)


torbenm@diku.dk (Torben AEgidius Mogensen) writes:
>I think it is intended that optimization occurs both at the high
>level, before generating ANDF, in ANDF itself, and when compiling ANDF
>to a specific machine. The latter is neccesary, as register allocation
>and instruction scheduling can't be done before you know the specific
>machine architecture.

So, what about more advanced optimizations like loop tiling, vectorization,
parallelization, etc -- many of these require specific knowledge of cache
structure, vector hardware, and so forth.  Does ANDF address any of this?
--
Larry Meadows		The Portland Group
lfm@pgroup.com


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

* Re: ANDF - some (mis)information
  1993-12-09  2:32             ` John R. Mashey
@ 1993-12-10  2:43               ` Keith Smith
  1993-12-10 16:23                 ` Torben AEgidius Mogensen
  0 siblings, 1 reply; 68+ messages in thread
From: Keith Smith @ 1993-12-10  2:43 UTC (permalink / raw)


I think ANDF has a *LOT* of potential basically being just a Hardware
shield.  I also think something LIKE ANDF is bound to happen eventually.
I just wonder how long it will take before an INSTALLER gets stable
enough for any given architecture.  Like how much more/less difficult
will it be to produce a working INSTALLER for a given architecture, than
say porting over GCC?

Basically an installer is a glorified name for an ANDF Compiler, and
ANDF is simply a Vanilla CPU specification.  How long before you get
ANDF "MicroCoded" into a RISC core?

Unless someone can unseat intel & take over with a *DOMINANT* RISC
architecture that is scaleable, ANDF or some derivitive thereof is going
to be something we'll have to live with.
-- 
Keith Smith          keith@ksmith.com              5719 Archer Rd.
Digital Designs      BBS 1-919-423-4216            Hope Mills, NC 28348-2201
Somewhere in the Styx of North Carolina ...


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

* Re: ANDF - some information
  1993-12-10  1:23                 ` Larry Meadows
@ 1993-12-10 11:42                   ` Bruce Stephens
  0 siblings, 0 replies; 68+ messages in thread
From: Bruce Stephens @ 1993-12-10 11:42 UTC (permalink / raw)


>>>>> On Fri, 10 Dec 1993 01:23:09 GMT, lfm@pgroup.com (Larry Meadows) said:

> So, what about more advanced optimizations like loop tiling, vectorization,
> parallelization, etc -- many of these require specific knowledge of cache
> structure, vector hardware, and so forth.  Does ANDF address any of this?

I believe so.  The ANDF representation is supposed to keep enough
high-level information about the program to allow this kind of
optimization to be done by the installer.  Not only does it keep
useful high-level information contained in the original source code,
but it is specifically designed to allow compilers to produce and
record *more* global information.  In that sense, it should be
better than using C as an intermediate language.

> --
> Larry Meadows		The Portland Group
> lfm@pgroup.com
--
Bruce                    Institute of Advanced Scientific Computation
bruce@liverpool.ac.uk    University of Liverpool


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

* Re: ANDF - some information
  1993-12-09  8:41               ` Rick Richardson
@ 1993-12-10 13:09                 ` Stefan Monnier
  1993-12-10 14:08                   ` James Larus
                                     ` (2 more replies)
  0 siblings, 3 replies; 68+ messages in thread
From: Stefan Monnier @ 1993-12-10 13:09 UTC (permalink / raw)


In article <rick.755426518@digibd>,
Rick Richardson <rick@digibd.digibd.com> wrote:
> AT&T leveled the field when C++ first came out by generating C
> code as its intermediate language.  Once the langauge became
> popular, native compilers became available.  I don't see the
> need for ANDF to perform this function when the C language
> already can do it.

Well, sure, C can play the same kind of role. But it hasn't been
designed for it and hence poses some serious problems as soon as your
language doesn't fit the C way of living.

Ex: any language with garbage collection has to have a pretty good
control of what is where (it has to know what is a pointer and what
isn't, basically, but it generally means much more than that). This is
a BIG problem with C, because C doesn't push any information along
with spilled registers on the stack: the stack is totally typeless and
it's pretty hard to get back the type of its componenents !
And anyway, even if you could do it easily, it is compiler dependent
and access to the registers (which are part of the roots) poses the
same kind of problems. If you want your C code to be portable...good
luck.

sml2c avoids the problem by using a fixed set of variables
("registers") declared globally and pushes frames on its own
explicitely handled "stack" (it's a heap). It is highly portable, but
twice as slow as assembly (and as hard as assembly to generate)

I don't know how easy it gets with ANDF, tho. I'm afraid it would be
just as trivial !


	Stefan
-- 

-----------------------------------------------------
-- On the average, people seem to be acting normal --
-----------------------------------------------------


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

* Re: ANDF - some information
  1993-12-10 13:09                 ` Stefan Monnier
@ 1993-12-10 14:08                   ` James Larus
  1993-12-10 15:55                     ` Bruce Stephens
  1993-12-10 20:08                   ` Hans Boehm
  1993-12-11 16:44                   ` ANDF - some information Robert Dewar
  2 siblings, 1 reply; 68+ messages in thread
From: James Larus @ 1993-12-10 14:08 UTC (permalink / raw)


Maybe I missed a major feature of ANDF, but it seems that most portability
problems are due to the poliferation of Unixes, each of which is subtlely
different (and better, of course).  C is universally available, but porting
software is still a major headache becasue every system differs.  Windows NT's
advantage is not that it is a better OS than Unix, but rather its code is 
controlled by a single vendor and will be the same on all platforms.

ANDF may be a reasonable delivery mechanism, but I don't see that it addresses
the really hard problems in writing software that runs on Unix systemS. 

/Jim

James Larus
Computer Sciences Department
University of Wisconsin-Madison


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

* Re: ANDF - some information
  1993-12-10 14:08                   ` James Larus
@ 1993-12-10 15:55                     ` Bruce Stephens
  0 siblings, 0 replies; 68+ messages in thread
From: Bruce Stephens @ 1993-12-10 15:55 UTC (permalink / raw)


>>>>> On Fri, 10 Dec 1993 14:08:16 GMT, larus@cs.wisc.edu (James Larus) said:

> Maybe I missed a major feature of ANDF, but it seems that most
> portability problems are due to the poliferation of Unixes, each of
> which is subtlely different (and better, of course). [...]

> ANDF may be a reasonable delivery mechanism, but I don't see that it
> addresses the really hard problems in writing software that runs on
> Unix systems.

That's what the rest of OSF is for.

> /Jim

> James Larus
> Computer Sciences Department
> University of Wisconsin-Madison
--
Bruce                    Institute of Advanced Scientific Computation
bruce@liverpool.ac.uk    University of Liverpool


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

* Re: ANDF - some (mis)information
  1993-12-10  2:43               ` Keith Smith
@ 1993-12-10 16:23                 ` Torben AEgidius Mogensen
  0 siblings, 0 replies; 68+ messages in thread
From: Torben AEgidius Mogensen @ 1993-12-10 16:23 UTC (permalink / raw)


keith@ksmith.com (Keith Smith) writes:

>Basically an installer is a glorified name for an ANDF Compiler, and
>ANDF is simply a Vanilla CPU specification.  How long before you get
>ANDF "MicroCoded" into a RISC core?

I believe ANDF isn't straight-line code, but tree-structured.
Executing tree-structured code at machine-level is not likely to be
fast (though some Forth proponents may disagree).

Even if we flatten the tree, it may not be an advantage to execute the
code directly. It is for example better to compile p-code to RISC code
than microcode/hardwire the p-code directly.

	Torben Mogensen (torbenm@diku.dk)



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

* Re: ANDF - some information
  1993-12-08 10:45 ` Ronald F. Guilmette
@ 1993-12-10 16:49   ` peter da silva
  1993-12-12  3:11     ` Dave Griffith
  0 siblings, 1 reply; 68+ messages in thread
From: peter da silva @ 1993-12-10 16:49 UTC (permalink / raw)


In article <rfgCHppw2.G9r@netcom.com> rfg@netcom.com (Ronald F. Guilmette) writes:
> It's obvious that you ANDF proponents have given up some of your more
> grandiose claims, and now your down to simply holding out the promise
> (to software vendors) of relieving them of the expense of cutting a
> longer tape or cutting an extra CD-ROM (in the remote eventuality that
> anyone should ever figure out how to completely fill up just ONE)!

Let's say I'm a BIG software vendor. Buying one of each workstation out
there so I can compile a version of my software on them to put on the CDROM
is a minimal cost. ANDF buys me nothing.

Let's say I'm a little software vendor. I can afford (say) three workstations
and a fileserver. Without ANDF, I write my code for Solaris (Intel and Sparc),
and you folks with HP and Alpha and NeXT and Unixware lose, and I lose. With
ANDF, I've suddenly got a bigger market, I sell my program cheaper, and make
more money. End users get more variety (tell me, do you REALLY like Word
Perfect for UNIX?).

> In the software game it has *always* been true that the cost of *creating*
> software far outweighs the cost of reproducing or distributing it.

Bingo.

ANDF cuts the cost of creating the software.
-- 
Peter da Silva                                            `-_-'
Network Management Technology Incorporated                 'U` 
1601 Industrial Blvd.     Sugar Land, TX  77478  USA
+1 713 274 5180                              "Ja' abracaste o teu lobo, hoje?"


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

* Re: ANDF - some information
  1993-12-09  9:41                     ` Todd P. Whitesel
  1993-12-09 14:23                       ` Robert Dewar
@ 1993-12-10 18:02                       ` Jan Vorbrueggen
  1993-12-12 10:57                       ` Todd P. Whitesel
  1993-12-16  5:20                       ` translation of x86 binary to native Dave Yost
  3 siblings, 0 replies; 68+ messages in thread
From: Jan Vorbrueggen @ 1993-12-10 18:02 UTC (permalink / raw)


In article <2e6rrk$q5o@gap.cco.caltech.edu> toddpw@ugcs.caltech.edu (Todd P.
Whitesel) writes:

   It's already been mentioned once, but I think it bears repeating:

   There is already an ANDF of sorts in wide usage, and there already are or
   will be implementations of it for Alpha, Mips, PowerPC, sparc, etc:

   80386 assembly.

But the 'language' used is only half of ANDF. The sceond half is the
definition of the operating environment and the services it offers, aka an
API. In your case, this would be DOS/BIOS, with all the memory layout kludge
that entails. This is where for many purposes C as a substitute ANDF would
fail.

	Jan


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

* Re: ANDF - some information
  1993-12-10 13:09                 ` Stefan Monnier
  1993-12-10 14:08                   ` James Larus
@ 1993-12-10 20:08                   ` Hans Boehm
  1993-12-12 19:38                     ` Lawrence G. Mayka
  1993-12-11 16:44                   ` ANDF - some information Robert Dewar
  2 siblings, 1 reply; 68+ messages in thread
From: Hans Boehm @ 1993-12-10 20:08 UTC (permalink / raw)


monnier@di.epfl.ch (Stefan Monnier) writes:

[Problems with using C as intermediate language for garbage collected
source language, e.g. finding pointer locations in stack(s).]

>sml2c avoids the problem by using a fixed set of variables
>("registers") declared globally and pushes frames on its own
>explicitely handled "stack" (it's a heap). It is highly portable, but
>twice as slow as assembly (and as hard as assembly to generate)

I think sml2c is in the minority here.  By doing this, it gets space
usage guarantees that are stronger than those provided by almost all
other language implementations, and it can probably afford to be
a bit sloppier about allocating short-lived objects.  If you are willing
to settle for the customary lack of guarantees (as with all C or Lisp
implementations that I know of), you can conservatively scan the stack
for bit patterns that look like pointers.  This is done by the SRC
Modula-3 compiler, the Sather compiler, AKCL, Bartlett's Scheme
compiler, etc., and even by some compilers that generate native code
(e.g. D-machine Cedar, and SRC Modula-2+, I believe.)

This avoids the factor of 2 execution time cost, but it still requires
minimal support from the optimizer (including the instruction scheduler)
to guarantee safety.  Such support happens to be accidentally provided
by some C compilers (e.g. lcc, or most compilers without optimization,
or gcc with suitable gcc-specific tweaking of the generated C code).
Based on a quick look at some of the documentation, I see no indication
that ANDF installers can be expected to support either generation of
pointer location information, or to guarantee this weak form of safety.


Hans-J. Boehm
(boehm@parc.xerox.com)
Standard disclaimer ...


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

* Re: ANDF - some (mis)information
  1993-12-08 20:56           ` Steven Correll
  1993-12-09  2:32             ` John R. Mashey
@ 1993-12-10 20:20             ` peter da silva
  1993-12-15 15:46               ` Mathew Lodge
  1 sibling, 1 reply; 68+ messages in thread
From: peter da silva @ 1993-12-10 20:20 UTC (permalink / raw)


In article <sjcCHqI5t.DAB@netcom.com> sjc@netcom.com (Steven Correll) writes:
> 1. Today before a vendor ships shrink-wrapped software in volume, s/he
> tests extensively to ensure that customers won't wipe out profits by
> swamping the tech support department with bug reports.

In the PC world they put tech support on a 900 number and use it as an
extra profit center. On the other hand in the PC world a cheap application
is $39.95. In the UNIX world a cheap application is $395.00.

> Vendors employ
> (at best) large regression suites or (at least) large QA departments to
> accomplish this.

Big ones do. Small ones (the ones that produce the majority of the apps)
can't afford to.

> 	-- Does OSF posit only one back end for each target system?

Seems reasonable.

> 	-- Does the vendor list on the back of the box of software the
> 	   particular target systems (and back-end version numbers) used
> 	   to test the software, with a disclaimer saying that it is not
> 	   warranted to work on others?

I would expect so.

> 	-- Does OSF propose to publish a list of authorized back-ends,
> 	   with each vendor expected to test with every one, even if
> 	   some of them have very little market share?

The big ones would probably.

> 2. Does OSF expect most optimization to occur before generation of ANDF,
> or in the back end? If the former, then ANDF does not ensure a "level
> playing field" for new languages and architectures,

Nothing can do that. It can hopefully make things better, though, and more
importantly increase the total market size which is only good for the end
user.
-- 
Peter da Silva                                            `-_-'
Network Management Technology Incorporated                 'U` 
1601 Industrial Blvd.     Sugar Land, TX  77478  USA
+1 713 274 5180                              "Ja' abracaste o teu lobo, hoje?"


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

* Re: ANDF - some information
  1993-12-10 13:09                 ` Stefan Monnier
  1993-12-10 14:08                   ` James Larus
  1993-12-10 20:08                   ` Hans Boehm
@ 1993-12-11 16:44                   ` Robert Dewar
  1993-12-13 19:16                     ` Hans Boehm
  2 siblings, 1 reply; 68+ messages in thread
From: Robert Dewar @ 1993-12-11 16:44 UTC (permalink / raw)


Adding to Stefan's note about limitations of C as a universal language, there
is also the problem of lack of support for exceptions and checked
arithmetic.

Actually I think Ada (low level junk Ada generated by a compiler) might
be preferable to C, at least from this point of view. As another thread
has been discussing, you can do pretty much what C does at the same level
with dirty Ada, and compilers don't need to worry about generating clean
code.


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

* Re: ANDF - some information
  1993-12-10 16:49   ` peter da silva
@ 1993-12-12  3:11     ` Dave Griffith
  0 siblings, 0 replies; 68+ messages in thread
From: Dave Griffith @ 1993-12-12  3:11 UTC (permalink / raw)



Has anyone been able to get copies of the papers/specs that the original post  
in this thread advertised?  I send mail to the address given, and get no  
response.  If you've got 'em, I'd love to have 'em.  Thanks.

--
Dave Griffith, Information Resources, University of Chicago,
Biological Sciences Division               dave@delphi.bsd.uchicago.edu
Welcome to The Net.  Check your assumptions at the door.


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

* Re: ANDF - some information
  1993-12-09  9:41                     ` Todd P. Whitesel
  1993-12-09 14:23                       ` Robert Dewar
  1993-12-10 18:02                       ` Jan Vorbrueggen
@ 1993-12-12 10:57                       ` Todd P. Whitesel
  1993-12-13 15:09                         ` Bill Kindel
  1993-12-16  5:20                       ` translation of x86 binary to native Dave Yost
  3 siblings, 1 reply; 68+ messages in thread
From: Todd P. Whitesel @ 1993-12-12 10:57 UTC (permalink / raw)


Apologies for following my own article, but judging from the mail I got it
looks like I'd better explain it. oh well, this is the net, after all...

>There is already an ANDF of sorts in wide usage, and there already are
>or will be implementations of it for Alpha, Mips, PowerPC, sparc, etc:
>80386 assembly.

Of course SoftPC on the Mac also belongs in the list, however I was focusing
on the fact that most modern RISCs are trying to break into the PC market
by emulating DOS machines.

I don't know how anyone managed to interpret that I was suggesting
x86 be considered for the standard ANDF. That's obviously absurd.
My point is that x86, specifically DOS/win3 binaries, have already
become a de facto ANDF as far as the market is concerned.

Besides, in a sense there is NO SUCH THING AS ANDF. What everyone is calling
ANDF is itself an instruction set architecture; if someone built hardware to
execute it, then it wouldn't be architecture neutral anymore now would it?

My view on ANDF is that relative to other approaches it is pretty pointless.
ANDF tries to handle in one place something that is already being handled in
pieces from every other direction. We have easily retargetable compilers. We
have language and library standards (and people are finally using them!) and
things like POSIX. These trends basically squeeze ANDF out of any useful
place in the universe. Implementing ANDF for your chip is not going to be
much cheaper than implementing ANSI C, POSIX, and GCC for your chip. And
don't forget the extra royalties you get for supporting more hosts at a
given site!

Todd Whitesel
toddpw @ ugcs.caltech.edu


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

* Re: ANDF - some information
  1993-12-10 20:08                   ` Hans Boehm
@ 1993-12-12 19:38                     ` Lawrence G. Mayka
  1993-12-13 20:01                       ` ANDF - some information (GC really) Hans Boehm
  0 siblings, 1 reply; 68+ messages in thread
From: Lawrence G. Mayka @ 1993-12-12 19:38 UTC (permalink / raw)


In article <2eakvr$is4@news.parc.xerox.com> boehm@parc.xerox.com (Hans Boehm) writes:

   I think sml2c is in the minority here.  By doing this, it gets space
   usage guarantees that are stronger than those provided by almost all
   other language implementations, and it can probably afford to be
   a bit sloppier about allocating short-lived objects.  If you are willing
   to settle for the customary lack of guarantees (as with all C or Lisp
   implementations that I know of), you can conservatively scan the stack
   for bit patterns that look like pointers.  This is done by the SRC
   Modula-3 compiler, the Sather compiler, AKCL, Bartlett's Scheme
   compiler, etc., and even by some compilers that generate native code
   (e.g. D-machine Cedar, and SRC Modula-2+, I believe.)

You seem to focus on languages that are statically typed,
implementations that are noncommercial, or implementations that
generate C code.  It is quite natural for these to scan stacks for
pointer-like bit patterns.  Indeed, they typically have no viable and
cost-effective alternative.

On the other hand, you don't mention Common Lisp implementations
specifically except for AKCL (which is noncommercial and generates C
code).  Are you certain that Harlequin, Franz, Lucid, Symbolics,
Venue, Apple, Gold Hill, CMU, and CLISP actually employ bit-pattern
scanning for their stacks?  Otherwise, your sweeping generalization
may mislead people into thinking that "Conservative GC can't be so
terrible because everybody's doing it."
--
        Lawrence G. Mayka
        AT&T Bell Laboratories
        lgm@iexist.att.com

Standard disclaimer.


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

* Re: ANDF - some information
  1993-12-12 10:57                       ` Todd P. Whitesel
@ 1993-12-13 15:09                         ` Bill Kindel
  0 siblings, 0 replies; 68+ messages in thread
From: Bill Kindel @ 1993-12-13 15:09 UTC (permalink / raw)


  Todd Whitesel posts:

> Apologies for following my own article, but judging from the mail I got it
> looks like I'd better explain it. oh well, this is the net, after all...

  Indeed.  Clarity is sometimes a rare commodity.

> >There is already an ANDF of sorts in wide usage, and there already are
> >or will be implementations of it for Alpha, Mips, PowerPC, sparc, etc:
> >80386 assembly.
> 
> Of course SoftPC on the Mac also belongs in the list, however I was focusing
> on the fact that most modern RISCs are trying to break into the PC market
> by emulating DOS machines.

  Emulation is merely a technical solution for the problem that most
  applications are offered on a very limited number of platforms.  I don't
  count it a feature that I have to maintain MS-DOS in addition to my
  system's native operating system in order to be able to use such an
  application.  The reality is that this mode of operation is unacceptable
  to many corporate users, who demand SIMPLE operating environments for their
  people and are willing to settle for the "lowest common denominator"
  instead of the "best solution", whatever that might be.  Are you prepared
  to give up ALL other architectures?

> I don't know how anyone managed to interpret that I was suggesting
> x86 be considered for the standard ANDF. That's obviously absurd.
> My point is that x86, specifically DOS/win3 binaries, have already
> become a de facto ANDF as far as the market is concerned.

  Hardly "architecture-neutral", but true.  We CAN do better.

> Besides, in a sense there is NO SUCH THING AS ANDF. What everyone is calling
> ANDF is itself an instruction set architecture; if someone built hardware to
> execute it, then it wouldn't be architecture neutral anymore now would it?

  You're reaching for this one.  In a world where CPU design has put so
  much effort into optimizing for a lean instruction set, it's highly
  unlikely that anyone would be interested in defining a CPU around the
  complex abstractions embodied in ANDF.

> My view on ANDF is that relative to other approaches it is pretty pointless.
> ANDF tries to handle in one place something that is already being handled in
> pieces from every other direction. We have easily retargetable compilers. We
> have language and library standards (and people are finally using them!) and
> things like POSIX. These trends basically squeeze ANDF out of any useful
> place in the universe. Implementing ANDF for your chip is not going to be
> much cheaper than implementing ANSI C, POSIX, and GCC for your chip. And
> don't forget the extra royalties you get for supporting more hosts at a
> given site!

  I beg to differ (and not because of my work affiliation -- I work on a
  completely different project).  The simple fact is that even WITH these
  pieces, the bulk of software applications are available for only two
  platforms, neither of which claims POSIX compliance.  (I'm one of 4M
  users of the #3 personal computer and, of necessity, I have to maintain
  an MS-DOS disk partition and an x86 co-processor.)

  Software publishers would LOVE to be able to focus on ONE platform and
  ONE distribution format.  To the extent that they can ignore the rest of
  us, they can do so with impunity.  This is NOT necessarily a good thing.

  Computer users, however, choose their hardware and software systems to
  meet their specific needs and they want to have a wide variety of
  applications from which to choose.  Most of them have NO interest in
  having to compile each application to run in their own environment, as
  has long been the case in the UNIX community.

  I see ANDF as an enabling technology that will provide its greatest
  benefit to the multitude of both (numerically) "smaller" platforms and
  software publishers.  By making a modest investment in standard API
  libraries and an ANDF installer, each vendor would gain instant access to
  a body of ANDFed software, of which ORACLE and WingZ are important examples.

  In turn, software publishers gain access to a variety of smaller markets
  that might not make sense individually but, taken together, could be very
  lucrative.  It is NOT the case that most non-MS-DOS PC or workstation
  users will be willing to put up with MS-DOS emulation in order to gain
  access to such applications.  They shouldn't even be asked to.

  I use OSF/1 at work and AmigaDOS at home.  There are thousands of
  applications available for each, but few that are available for both.
  I'd like to be able to have the best of both worlds, and I believe that
  ANDF could become a significant factor in making that possible.

  ===========================================================================
  Bill Kindel            Voice:  617/621-7395 | Happy, productive Amiga owner.
  Research Institute       FAX:  617/621-8696 | 90M MS-DOS users CAN be wrong!
  Open Software Foundation     kindel@osf.org | (They just don't know better.)
  ---------------------------------------------------------------------------
    Standard Disclaimer:  The opinions expressed above are my own and do
                          not necessarily represent those of my employer.
  ===========================================================================



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

* Re: ANDF - some information
  1993-12-11 16:44                   ` ANDF - some information Robert Dewar
@ 1993-12-13 19:16                     ` Hans Boehm
  0 siblings, 0 replies; 68+ messages in thread
From: Hans Boehm @ 1993-12-13 19:16 UTC (permalink / raw)


dewar@cs.nyu.edu (Robert Dewar) writes:

>Adding to Stefan's note about limitations of C as a universal language, there
>is also the problem of lack of support for exceptions and checked
>arithmetic.

I'm not sure whether checked arithmetic is a big deal.  A high quality
implementation would probably have to do enough analysis to eliminate
most of the checks anyway.  A purely C language check requires on the
order of 3 or 4 boolean operations on the 3 sign bits, plus a test.  (E.g.,
signed addition overflow occurs iff the two arguments have the same sign bit,
and the result sign is different.)  And if you know that the C compiler is gcc,
you can generate the appropriate assembly code for the architectures you know
about.  Does anybody have any measurements as to what you really lose there?

Hans-J. Boehm
(boehm@parc.xerox.com)
Standard disclaimer ...


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

* Re: ANDF - some information (GC really)
  1993-12-12 19:38                     ` Lawrence G. Mayka
@ 1993-12-13 20:01                       ` Hans Boehm
  0 siblings, 0 replies; 68+ messages in thread
From: Hans Boehm @ 1993-12-13 20:01 UTC (permalink / raw)


lgm@polaris.flw.att.com (Lawrence G. Mayka) writes:

>In article <2eakvr$is4@news.parc.xerox.com> boehm@parc.xerox.com (Hans Boehm) writes:

>   I think sml2c is in the minority here.  By doing this, it gets space
>   usage guarantees that are stronger than those provided by almost all
>   other language implementations, and it can probably afford to be
>   a bit sloppier about allocating short-lived objects.  If you are willing
>   to settle for the customary lack of guarantees (as with all C or Lisp
>   implementations that I know of), you can conservatively scan the stack
>   for bit patterns that look like pointers.  This is done by the SRC
>   Modula-3 compiler, the Sather compiler, AKCL, Bartlett's Scheme
>   compiler, etc., and even by some compilers that generate native code
>   (e.g. D-machine Cedar, and SRC Modula-2+, I believe.)

>You seem to focus on languages that are statically typed,
>implementations that are noncommercial, or implementations that
>generate C code.  It is quite natural for these to scan stacks for
>pointer-like bit patterns.  Indeed, they typically have no viable and
>cost-effective alternative.

>On the other hand, you don't mention Common Lisp implementations
>specifically except for AKCL (which is noncommercial and generates C
>code).  Are you certain that Harlequin, Franz, Lucid, Symbolics,
>Venue, Apple, Gold Hill, CMU, and CLISP actually employ bit-pattern
>scanning for their stacks?

I believe that commercial Lisp systems generally do NOT use conservative stack
scanning.  I did not mean to imply that they did.  I did mean to say that,
as far as I know, they do not provide any space usage guarantees.
If they were to do so, they would first have to define which Lisp objects
are accessible at what time.  I know of no such definition.  And a compiler
would have to go through some effort, and forego some optimizations,
in order to adhere to such a definition.
 
The problem for C is different.  The notion of live heap storage is 
well-defined (malloc'ed but not free'd).  But for n live bytes, the worst-case
heap size is at least proportional to n*log n, and perhaps n * n.  (The
latter class of algoruthms may be better in practice.) Except perhaps
for Paul Wilson's garbage collected implementation, I know of no malloc
implementation that even specifies where it falls.  And neither guarantee
is likely to be useful.

I would argue that in either case, you don't get usefully better space
guarantees than with a conservative collector.  (Expected performance
is a more complicated issue that will depend on the application, etc.
And this isn't the right discussion for that.)
 
Hans-J. Boehm
(boehm@parc.xerox.com)
Standard disclaimer ...



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

* Re: ANDF - some (mis)information
  1993-12-08 10:56         ` ANDF - some (mis)information Ronald F. Guilmette
  1993-12-08 19:43           ` Donald Lindsay
  1993-12-08 20:56           ` Steven Correll
@ 1993-12-14 19:30           ` Matt Kennel
  1993-12-14 20:11             ` Dave Griffith
                               ` (2 more replies)
  2 siblings, 3 replies; 68+ messages in thread
From: Matt Kennel @ 1993-12-14 19:30 UTC (permalink / raw)


Ronald F. Guilmette (rfg@netcom.com) wrote:
: In article <2dl2qs$6ks@schonberg.cs.nyu.edu> dewar@cs.nyu.edu (Robert Dewar) writes:
: >
: >Even granting the need to keep distributed code proprietary, one wonders
: >if something like Gimpel's C-shroud would fill the need.

: This is *the* primary point which the ANDF proponents have consistantly
: shown a complete unwillingness and/or inability to address.

: This is also the exact point which proves that ANDF is not merely a
: commercial flop, but also a technical flop.  Adequate (and simple)
: methods for solving the exact same problem (e.g. Gimpel's C-shroud)
: already existed (or had been postulated) even before the ANDF crowd
: setup a big and expensive research effort to "study the issue".

There are also claims that the semantics of C are insufficient as an output
code for some other kinds of languages, which is probably true.

In that case, I think that one ought to attempt to identify these, and make
extensions to C so as to make it more friendly as an intermediate language,
and/or impose other portability requirements on 'ANDF-certified' intermediate C
code.

It might easier to get a few changes into C up and running rather than
starting from scratch. 

For instance, start on that damned 'noalias'.  (A key for numerical code)

E.g.

for (i=0; i<N; i++)
  {
	a[i] = /* functional depending on a[i] b[i], c[i] */
        b[i] = /* another functional on a[i],b[i],c[i] */
  }

This was recently shown as an example in the C langauge newsgroup that
the following rewrite, 

for (i=0; i<N; i++)
  {
	float ai;
        ai = /* functional depending on a[i] b[i], c[i] */
        b[i] = /* another functional on a[i],b[i],c[i] */
        a[i] = ai;
  }

speeded things up by 50%-100% on *serial* computers that the author
tested.  This is important.

Suppose we had a reasonable 'noalias'.  What should it do?  The meaning
is to guarantee that memory accesses through the following pointers are
asserted to not overlap.

So noalias is something that provides assertions about memory
accesses through sets of pointers:

for (i=0; i<N; i++)
  {
	noalias {a,b,c};   /* no overlapping between any memory
	access through these pointers */

	a[i] = /* functional depending on a[i] b[i], c[i] */
        b[i] = /* another functional on a[i],b[i],c[i] */
  }


It might be useful in regular C even.  (Wasn't there some sort of 'noalias'
proposed a while ago, but as a weird kind of attribute in a declaration,
like 'static' or 'const'.  That doesn't make any sense to me.)

Making the C garbage-collector friendly would also be a good idea.

: -- 

: -- Ronald F. Guilmette, Sunnyvale, California -------------------------------
: ------ domain address: rfg@netcom.com ---------------------------------------
: ------ uucp address: ...!uunet!netcom.com!rfg -------------------------------

--
-Matt Kennel  		mbk@inls1.ucsd.edu
-Institute for Nonlinear Science, University of California, San Diego
-*** AD: Archive for nonlinear dynamics papers & programs: FTP to
-***     lyapunov.ucsd.edu, username "anonymous".


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

* Re: ANDF - some (mis)information
  1993-12-14 19:30           ` ANDF - some (mis)information Matt Kennel
@ 1993-12-14 20:11             ` Dave Griffith
  1993-12-14 22:38               ` Hans Boehm
  1993-12-15 12:10             ` Torben AEgidius Mogensen
  1993-12-21 23:46             ` Michael R Castle
  2 siblings, 1 reply; 68+ messages in thread
From: Dave Griffith @ 1993-12-14 20:11 UTC (permalink / raw)


In article <2el49dINN638@network.ucsd.edu> mbk%anl433.uucp@Germany.EU.net (Matt  
Kennel) writes:

> There are also claims that the semantics of C are insufficient as an output
> code for some other kinds of languages, which is probably true.

Not "probably".  Manifestly and utterly.  There are about a half-dozen  
important things required for non-C languages that simply cannot be done  
efficiently when compiling by way of portable C.  My list includes GC,  
arithmetic with traps, non-local exceptions, and (god help us) BCD arithmetic.
More stuff can only be done if the target C compiler is quite smart indeed  
(bit-rotates, for example).

> 
> In that case, I think that one ought to attempt to identify these, and make
> extensions to C so as to make it more friendly as an intermediate language,
> and/or impose other portability requirements on 'ANDF-certified' intermediate  
C
> code.
> It might easier to get a few changes into C up and running rather than
> starting from scratch. 

Fortunately we don't have to start from scratch.  We can use the good work of  
the people at DRA and OSF.  This sounds _much_ easier than getting a half-dozen  
major changes past the ANSI C committee in my lifetime.

[good stuff on noalias, deleted]

> Making the C garbage-collector friendly would also be a good idea.

A garbage-collector friendly C would require breaking _huge_ amounts of  
existing code.

--
Dave Griffith, Information Resources, University of Chicago,
Biological Sciences Division               dave@delphi.bsd.uchicago.edu
Lord, grant me the companionship of those who seek truth, 
and protection from those who have found it.


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

* Re: ANDF - some (mis)information
  1993-12-14 20:11             ` Dave Griffith
@ 1993-12-14 22:38               ` Hans Boehm
  0 siblings, 0 replies; 68+ messages in thread
From: Hans Boehm @ 1993-12-14 22:38 UTC (permalink / raw)


dave@blackjoke.bsd.uchicago.edu (Dave Griffith) writes:

>In article <2el49dINN638@network.ucsd.edu> mbk%anl433.uucp@Germany.EU.net (Matt  
>Kennel) writes:

>> There are also claims that the semantics of C are insufficient as an output
>> code for some other kinds of languages, which is probably true.

>Not "probably".  Manifestly and utterly.  There are about a half-dozen  
>important things required for non-C languages that simply cannot be done  
>efficiently when compiling by way of portable C.  My list includes GC,  
>arithmetic with traps, non-local exceptions, and (god help us) BCD arithmetic.
>More stuff can only be done if the target C compiler is quite smart indeed  
>(bit-rotates, for example).

Some of these don't seem like a big deal.
My guess is that BCD arithmetic can be moved into the run-time system
with minimal performance loss.  Arithmetic traps can be handled with
some overhead, or by assuming gcc like facilities and a tiny amount of
architecture specific code.  I have yet to see evidence that these are
addressed by ANDF (with the exception of arithmetic traps).  And I have
looked at some descriptions.

...

>> Making the C garbage-collector friendly would also be a good idea.

>A garbage-collector friendly C would require breaking _huge_ amounts of  
>existing code.

No.  Guaranteeing the safety of a conservative garbage collector is
a minimal added requirement on the code generator.  With considerably
more work, you could guarantee very precise identification of pointers,
assuming "well-behaved" source code.  In either case, I don't think
anybody would advocate requiring all C code to run with a garbage
collector.  It's sufficient to make suitably generated code safe with
a collector.  (In the case of a fully conservative collector, "suitably
generated" is basically implied by "strictly conforming ANSI C".
Empirically, the vast majority of hand-written C programs are
"suitably generated".)

The situation in ANDF seems to be principally the same, except that
it appears to be missing some of the hooks provided by gcc.  (Please
correct me if I'm wrong.)

Hans-J. Boehm
(boehm@parc.xerox.com)
Standard disclaimer ...


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

* Re: ANDF - some (mis)information
  1993-12-14 19:30           ` ANDF - some (mis)information Matt Kennel
  1993-12-14 20:11             ` Dave Griffith
@ 1993-12-15 12:10             ` Torben AEgidius Mogensen
  1993-12-15 18:12               ` Hans Boehm
  1993-12-21 23:46             ` Michael R Castle
  2 siblings, 1 reply; 68+ messages in thread
From: Torben AEgidius Mogensen @ 1993-12-15 12:10 UTC (permalink / raw)


mbk%anl433.uucp@Germany.EU.net (Matt Kennel) writes:

>There are also claims that the semantics of C are insufficient as an output
>code for some other kinds of languages, which is probably true.

>In that case, I think that one ought to attempt to identify these, and make
>extensions to C so as to make it more friendly as an intermediate language,
>and/or impose other portability requirements on 'ANDF-certified' intermediate C
>code.

>It might easier to get a few changes into C up and running rather than
>starting from scratch. 

Two things that I (and others) have missed in C as an intermediate
language for implementation of functional languages are tail-call
optimization and indirect jumps.

Tail-call optimization means that you are guarateed that if the last
thing you do in a procedure or function is to call another procedure
or function, then all the stack space that the calling function uses
is removed from the stack before the called function uses any stack
space. This ensures constant stack usage of tail-recursive (mutually)
recursive functions.

Indirect jumps are useful to implement higher order functions and the
socalled "tagless" abstract machines. Something akin to the assigned
goto of Fortran is O.K.  I don't suggest pointer arithmetic on jumps,
though I'm sure some C-hackers would love that ;-).

	Torben Mogensen (torbenm@diku.dk)


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

* Re: ANDF - some (mis)information
  1993-12-10 20:20             ` peter da silva
@ 1993-12-15 15:46               ` Mathew Lodge
  1993-12-21 16:30                 ` <ui.h> wanted Jeff Wang
  0 siblings, 1 reply; 68+ messages in thread
From: Mathew Lodge @ 1993-12-15 15:46 UTC (permalink / raw)


In article <id.JW251.HG5@nmti.com> peter@nmti.com (peter da silva) writes:
>In article <sjcCHqI5t.DAB@netcom.com> sjc@netcom.com (Steven Correll) writes:
>> 	-- Does the vendor list on the back of the box of software the
>> 	   particular target systems (and back-end version numbers) used
>> 	   to test the software, with a disclaimer saying that it is not
>> 	   warranted to work on others?
>
>I would expect so.

No. Software vendors are moving from selling software to selling *licenses
to run software*. This is very, very common in the workstation world, where
your license is usually tied to a particular machine ("node locked") or
network ("floating").

Support is also critically important to many companies -- no license, no
support.

In this case, ANDF only saves you the cost of media -- i.e. virtually
nothing.

>Peter da Silva                                            `-_-'
>Network Management Technology Incorporated                 'U` 
>1601 Industrial Blvd.     Sugar Land, TX  77478  USA
>+1 713 274 5180                              "Ja' abracaste o teu lobo, hoje?"

Mat
-- 
| Mathew Lodge               | "There's nothing intellectual about wandering |
| lodge@ferndown.ate.slb.com |  around Italy in a big shirt trying to get    |
| Schlumberger Technologies, |  laid" -- Blackadder on the romantic poets    |
| ATE division, Ferndown, UK | I speak for me, not Schlumberger Technologies |


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

* Re: ANDF - some (mis)information
  1993-12-15 12:10             ` Torben AEgidius Mogensen
@ 1993-12-15 18:12               ` Hans Boehm
  1993-12-16 14:36                 ` Michael Spertus
  0 siblings, 1 reply; 68+ messages in thread
From: Hans Boehm @ 1993-12-15 18:12 UTC (permalink / raw)


[I suggest we move this discussion to just comp.lang.misc]

torbenm@diku.dk (Torben AEgidius Mogensen) writes:

>Two things that I (and others) have missed in C as an intermediate
>language for implementation of functional languages are tail-call
>optimization and indirect jumps.

>Tail-call optimization means that you are guarateed that if the last
>thing you do in a procedure or function is to call another procedure
>or function, then all the stack space that the calling function uses
>is removed from the stack before the called function uses any stack
>space. This ensures constant stack usage of tail-recursive (mutually)
>recursive functions.

This is not safe in C, since pointers into the callers activation
record may still be around.  I've never managed to understand what
the corresponding "guarantee" in scheme meant, either.  Parts of
the callers environment may also escape there.  In scheme, environment
growth in response to a tail call somehow doesn't count.

I think the best you can really hope for, in the absence of
real definitions, is "best effort" from the compiler to remove
stack frames for tail calls.  And some C compilers are already pretty
good at that.

>Indirect jumps are useful to implement higher order functions and the
>socalled "tagless" abstract machines. Something akin to the assigned
>goto of Fortran is O.K.  I don't suggest pointer arithmetic on jumps,
>though I'm sure some C-hackers would love that ;-).

Gcc has a facility along these lines.  Does that suffice?

Hans-J. Boehm
(boehm@parc.xerox.com)
Standard disclaimer ...


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

* Re: translation of x86 binary to native
  1993-12-09  9:41                     ` Todd P. Whitesel
                                         ` (2 preceding siblings ...)
  1993-12-12 10:57                       ` Todd P. Whitesel
@ 1993-12-16  5:20                       ` Dave Yost
  1993-12-16 14:58                         ` yoder
  1993-12-16 16:59                         ` John R Levine
  3 siblings, 2 replies; 68+ messages in thread
From: Dave Yost @ 1993-12-16  5:20 UTC (permalink / raw)


In article <2e6rrk$q5o@gap.cco.caltech.edu> toddpw@ugcs.caltech.edu (Todd P. Whitesel) writes:
>There is already an ANDF of sorts in wide usage, and there already are
>or will be implementations of it for Alpha, Mips, PowerPC, sparc, etc:
>
>80386 assembly.

A while back, I thought I heard of one x86 emulation vendor
who, instead of interpreting x86 code, translated it on the
fly to native machine code, which they would then run instead.
Yet, it seems that SoftPC is king, and they only interpret.
What's the deal?

-- 
  Dave Yost
      @    .COM


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

* Re: ANDF - some (mis)information
  1993-12-15 18:12               ` Hans Boehm
@ 1993-12-16 14:36                 ` Michael Spertus
  0 siblings, 0 replies; 68+ messages in thread
From: Michael Spertus @ 1993-12-16 14:36 UTC (permalink / raw)


From uchinews!ncar!gatech!howland.reston.ans.net!math.ohio-state.edu!sdd.hp.com!decwrl!parc!boehm Thu Dec 16 08:31:25 CST 1993
Article: 9856 of comp.lang.misc
Xref: uchinews comp.lang.misc:9856 comp.lang.c++:54108 comp.arch:30194 comp.unix.osf.misc:835
Path: uchinews!ncar!gatech!howland.reston.ans.net!math.ohio-state.edu!sdd.hp.com!decwrl!parc!boehm
From: boehm@parc.xerox.com (Hans Boehm)
Newsgroups: comp.lang.misc,comp.lang.c++,comp.arch,comp.unix.osf.misc
Subject: Re: ANDF - some (mis)information
Date: 15 Dec 1993 18:12:50 GMT
Organization: Xerox Palo Alto Research Center
Lines: 36
Message-ID: <2enk32$oi7@news.parc.xerox.com>
References: <rfgCHpqEE.GtD@netcom.com> <2el49dINN638@network.ucsd.edu> <1993Dec15.121017.16629@odin.diku.dk>
NNTP-Posting-Host: siria.parc.xerox.com

[I suggest we move this discussion to just comp.lang.misc]

torbenm@diku.dk (Torben AEgidius Mogensen) writes:

>>Two things that I (and others) have missed in C as an intermediate
>>language for implementation of functional languages are tail-call
>>optimization and indirect jumps.

>>Tail-call optimization means that you are guarateed that if the last
>>thing you do in a procedure or function is to call another procedure
>>or function, then all the stack space that the calling function uses
>>is removed from the stack before the called function uses any stack
>>space. This ensures constant stack usage of tail-recursive (mutually)
>>recursive functions.

>This is not safe in C, since pointers into the callers activation
>record may still be around.  I've never managed to understand what
>the corresponding "guarantee" in scheme meant, either.  Parts of
>the callers environment may also escape there.  In scheme, environment
>growth in response to a tail call somehow doesn't count.

There is a safe implementation. Simply replace the parms in the
current stack frame with those that would have been pushed by the
call and jump back to the top. This only becomes trouble where the
address of something in the current frame is passed to the next
frame. There can be a warning about that.




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

* Re: translation of x86 binary to native
  1993-12-16  5:20                       ` translation of x86 binary to native Dave Yost
@ 1993-12-16 14:58                         ` yoder
  1993-12-16 17:46                           ` Arthur Chance
  1993-12-16 21:45                           ` Leo Broukhis
  1993-12-16 16:59                         ` John R Levine
  1 sibling, 2 replies; 68+ messages in thread
From: yoder @ 1993-12-16 14:58 UTC (permalink / raw)


Dave Yost (Dave@Yost.COM) wrote:
: In article <2e6rrk$q5o@gap.cco.caltech.edu> toddpw@ugcs.caltech.edu (Todd P. Whitesel) writes:
: >There is already an ANDF of sorts in wide usage, and there already are
: >or will be implementations of it for Alpha, Mips, PowerPC, sparc, etc:
: >
: >80386 assembly.

: A while back, I thought I heard of one x86 emulation vendor
: who, instead of interpreting x86 code, translated it on the
: fly to native machine code, which they would then run instead.
: Yet, it seems that SoftPC is king, and they only interpret.
: What's the deal?

I'm pretty sure that SoftPC translates to native machine code
and then runs it (as opposed to interpreting x86 code an instruction
at a time).  IBM's PCSIM for AIX also follows this method.

Stuart 


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

* Re: translation of x86 binary to native
  1993-12-16  5:20                       ` translation of x86 binary to native Dave Yost
  1993-12-16 14:58                         ` yoder
@ 1993-12-16 16:59                         ` John R Levine
  1 sibling, 0 replies; 68+ messages in thread
From: John R Levine @ 1993-12-16 16:59 UTC (permalink / raw)


>A while back, I thought I heard of one x86 emulation vendor
>who, instead of interpreting x86 code, translated it on the
>fly to native machine code, which they would then run instead.
>Yet, it seems that SoftPC is king, and they only interpret.
>What's the deal?

It's both a dessert topping and a floor wax.  SoftPC translates basic
blocks on the fly, then executes the translated code.  If code is
overwritten, the chunk is retranslated.

Colin Hunter's XDOS did static translation, but required quite a lot
of help from a skilled programmer during the translation process.
The market clearly wanted something that would be a DOS machine, not
restricted to applications from vendors who had done the translation
for you.

Regards,
John Levine, johnl@iecc.com, jlevine@delphi.com, 1037498@mcimail.com


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

* Re: translation of x86 binary to native
  1993-12-16 14:58                         ` yoder
@ 1993-12-16 17:46                           ` Arthur Chance
  1993-12-17 14:07                             ` yoder
  1993-12-16 21:45                           ` Leo Broukhis
  1 sibling, 1 reply; 68+ messages in thread
From: Arthur Chance @ 1993-12-16 17:46 UTC (permalink / raw)


In article <CI4uwu.2KBs@austin.ibm.com>, yoder@austin.ibm.com () writes:
> Dave Yost (Dave@Yost.COM) wrote:
> : A while back, I thought I heard of one x86 emulation vendor
> : who, instead of interpreting x86 code, translated it on the
> : fly to native machine code, which they would then run instead.
> : Yet, it seems that SoftPC is king, and they only interpret.
> : What's the deal?
> 
> I'm pretty sure that SoftPC translates to native machine code
> and then runs it (as opposed to interpreting x86 code an instruction
> at a time).  IBM's PCSIM for AIX also follows this method.

Unless it's been changed, SoftPC interprets x86 code. I've seen a remark
from someone in Insignia saying the hardest part of writing SoftPC was
emulating the hardware bugs - it really is intended to be bug for bug
compatible with the genuine hardware (PC AT, I think, but I haven't looked
at SoftPC for some years now, so they may have "upgraded the processor").
Unless my memory has been totally randomised (not impossible) this remark
was in an article where the guy was asking how some MS-DOS command worked,
and he said that he knew the PC hardware inside out, but didn't know DOS
very well. Maybe this is an improvement over knowing DOS but not understanding
the hardware :-)

The translation software is called something like Hunter XDOS. It doesn't
translate on the fly, it cross compiles (cross assembles?) x86 order codes
to native order codes once, to give you a native executable (which includes
an XDOS Int 21h emulation library), so it could act as a sort of installer
for `x86 ANDF' which was the original remark. The advertising blurb I saw
suggested that the software vendors rather than the software users would
do the translation though. The reviews I saw of it when it first came out
were complimentary about the speed of the translated executables. However,
all this was a while back as Dave Yost says, and I can't remember any more
details.

-- 
Contains no user maintainable parts.


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

* Re: translation of x86 binary to native
  1993-12-16 14:58                         ` yoder
  1993-12-16 17:46                           ` Arthur Chance
@ 1993-12-16 21:45                           ` Leo Broukhis
  1 sibling, 0 replies; 68+ messages in thread
From: Leo Broukhis @ 1993-12-16 21:45 UTC (permalink / raw)


In article <CI4uwu.2KBs@austin.ibm.com> yoder@austin.ibm.com () writes:

>I'm pretty sure that SoftPC translates to native machine code
>and then runs it (as opposed to interpreting x86 code an instruction
>at a time).  IBM's PCSIM for AIX also follows this method.

A while ago I ran a program which determines the depth of instrustion
buffer, on SunPC. The result was zero, that is instructions are
executed one by one, probably by compiling each x86 instruction into
corresponding native code (1-3 native instructions for most x86 opcodes)
and doing "recompilation by request", i.e. instruction is compiled
when it is about to be executed, and compiled code is discarded when
corresponding location is overwritten. Pretty simple but space consuming.
The next speedup might be to compile the whole basic blocks if 
they were executed several times without modification.

--
Disclaimer implied.
-- 
	Leonid A. Broukhis  | Misce, Da, Signa: After each e-mail message.


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

* Re: translation of x86 binary to native
  1993-12-16 17:46                           ` Arthur Chance
@ 1993-12-17 14:07                             ` yoder
  0 siblings, 0 replies; 68+ messages in thread
From: yoder @ 1993-12-17 14:07 UTC (permalink / raw)


Arthur Chance (arthur@Smallworld.co.uk) wrote:
: In article <CI4uwu.2KBs@austin.ibm.com>, yoder@austin.ibm.com () writes:
: > Dave Yost (Dave@Yost.COM) wrote:
: > : A while back, I thought I heard of one x86 emulation vendor
: > : who, instead of interpreting x86 code, translated it on the
: > : fly to native machine code, which they would then run instead.
: > : Yet, it seems that SoftPC is king, and they only interpret.
: > : What's the deal?
: > 
: > I'm pretty sure that SoftPC translates to native machine code
: > and then runs it (as opposed to interpreting x86 code an instruction
: > at a time).  IBM's PCSIM for AIX also follows this method.

: Unless it's been changed, SoftPC interprets x86 code. I've seen a remark
: from someone in Insignia saying the hardest part of writing SoftPC was
: emulating the hardware bugs - it really is intended to be bug for bug
: compatible with the genuine hardware (PC AT, I think, but I haven't looked
: at SoftPC for some years now, so they may have "upgraded the processor").

Whether or not SoftPC is bug for bug compatible with the genuine hardware
has nothing to do with the method of emulation-- translation vs.  
interpretation.

I think of _interpretation_ as through the cycle of fetching an
instruction, decoding it, and emulating the function on the native
machine.  This is repeated for each instruction.

I would consider _translation_ as being done in blocks-- decode an
entire block of x86 instructions and generate a corresponding block
of code on the native machine that emulates the x86 block.  Then
execute the block of native instructions.  The advantage here is that
the block can be saved and next time it can simply be executed-- no
decoding, etc. needs to done.    Of course if instruction
modification takes place the block must be 'purged' and
re-translated.

I don't know the workings of SoftPC by personal experience so I'm not
positive how they do it.

Stuart


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

* <ui.h> wanted
  1993-12-15 15:46               ` Mathew Lodge
@ 1993-12-21 16:30                 ` Jeff Wang
  0 siblings, 0 replies; 68+ messages in thread
From: Jeff Wang @ 1993-12-21 16:30 UTC (permalink / raw)



Dear Netter:


Would somebody point me to a place where I can fine "ui.h" in the
/usr/include?
  
My machine (SGI Indigo) dose NOT have it.  But I nee it for compiling the
Mosaic program.


Thanks in advance

Jeff




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

* Re: ANDF - some (mis)information
  1993-12-14 19:30           ` ANDF - some (mis)information Matt Kennel
  1993-12-14 20:11             ` Dave Griffith
  1993-12-15 12:10             ` Torben AEgidius Mogensen
@ 1993-12-21 23:46             ` Michael R Castle
  2 siblings, 0 replies; 68+ messages in thread
From: Michael R Castle @ 1993-12-21 23:46 UTC (permalink / raw)



I'm coming into this discussion late,a nd the original articles have expired.

First:  What is ANDF?  I gather from some posts Architecture Neutral ??????

Second:  It *appears* to me to be a way of defining a "lowest common factor"
for use between various systems, to make porting applications much easier.

If this is true, has anyone heard of the PORT system?  I've only read one
article about it in either a Dr Dobbs or a Computer Language mag (I'm not at
home so can't look it up).  It appears to be something similar.  PORT runs on
top of the native environment, and provides a common backplane for programs.
You can take a PORT compiled binary, and run it on any system that supports
PORT.  Evidently everything like operating systems calls and all the C
libaries are implimented as calls to PORT to run precompile code for that
machine.  For example, the funcion cos() would not be a PORT binary, but
rather a system call to PORT, and every implementation of PORT would have a
host-specific version of cos().  

Is this something similar to ANDF?

If more interest, I'll look up the refs and post back when I get the chance.
-- 
Mike Castle .-=NEXUS=-.  Life is like a clock:  You can work constantly
  mcastle@cs.umr.edu     and be right all the time, or not work at all
S087891@UMRVMA.UMR.EDU   and be right at least twice a day.  -- mrc
    We are all of us living in the shadow of Manhattan.  -- Watchmen


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

end of thread, other threads:[~1993-12-21 23:46 UTC | newest]

Thread overview: 68+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-12-01 10:24 ANDF - some information John Maccallum
1993-12-01 14:17 ` Rick Richardson
1993-12-02  7:22   ` Harro Kremer
1993-12-02 13:01     ` John Maccallum
1993-12-02 13:48     ` Donald Lewine
1993-12-02 15:49       ` Robert Dewar
1993-12-02 21:24         ` Simon Patience
1993-12-06  7:58           ` Dave Yost
1993-12-07 16:38             ` Stavros Macrakis
1993-12-07 22:24               ` Robert Dewar
1993-12-08  4:35                 ` Ed McClanahan
1993-12-08 10:15                   ` Richard Kenner
1993-12-08 15:47                 ` Piercarlo Grandi
1993-12-09  3:57                   ` Mark H. Johnson
1993-12-09  9:41                     ` Todd P. Whitesel
1993-12-09 14:23                       ` Robert Dewar
1993-12-09 16:09                         ` Thatcher Ulrich
1993-12-10 18:02                       ` Jan Vorbrueggen
1993-12-12 10:57                       ` Todd P. Whitesel
1993-12-13 15:09                         ` Bill Kindel
1993-12-16  5:20                       ` translation of x86 binary to native Dave Yost
1993-12-16 14:58                         ` yoder
1993-12-16 17:46                           ` Arthur Chance
1993-12-17 14:07                             ` yoder
1993-12-16 21:45                           ` Leo Broukhis
1993-12-16 16:59                         ` John R Levine
1993-12-09 17:11                     ` ANDF - some information Piercarlo Grandi
1993-12-08 16:03                 ` John R Levine
1993-12-08 23:24                   ` Robert Dewar
1993-12-09  8:41               ` Rick Richardson
1993-12-10 13:09                 ` Stefan Monnier
1993-12-10 14:08                   ` James Larus
1993-12-10 15:55                     ` Bruce Stephens
1993-12-10 20:08                   ` Hans Boehm
1993-12-12 19:38                     ` Lawrence G. Mayka
1993-12-13 20:01                       ` ANDF - some information (GC really) Hans Boehm
1993-12-11 16:44                   ` ANDF - some information Robert Dewar
1993-12-13 19:16                     ` Hans Boehm
1993-12-08 20:48             ` Matt Kennel
1993-12-09 12:24               ` Torben AEgidius Mogensen
1993-12-10  1:23                 ` Larry Meadows
1993-12-10 11:42                   ` Bruce Stephens
1993-12-08 11:23           ` Ronald F. Guilmette
1993-12-08 17:05             ` Simon Patience
1993-12-09 12:33               ` John Krueger
1993-12-08 10:56         ` ANDF - some (mis)information Ronald F. Guilmette
1993-12-08 19:43           ` Donald Lindsay
1993-12-09 19:20             ` Hans Boehm
1993-12-08 20:56           ` Steven Correll
1993-12-09  2:32             ` John R. Mashey
1993-12-10  2:43               ` Keith Smith
1993-12-10 16:23                 ` Torben AEgidius Mogensen
1993-12-10 20:20             ` peter da silva
1993-12-15 15:46               ` Mathew Lodge
1993-12-21 16:30                 ` <ui.h> wanted Jeff Wang
1993-12-14 19:30           ` ANDF - some (mis)information Matt Kennel
1993-12-14 20:11             ` Dave Griffith
1993-12-14 22:38               ` Hans Boehm
1993-12-15 12:10             ` Torben AEgidius Mogensen
1993-12-15 18:12               ` Hans Boehm
1993-12-16 14:36                 ` Michael Spertus
1993-12-21 23:46             ` Michael R Castle
1993-12-02 16:47       ` ANDF - some information Rodger Lea
1993-12-02 21:27         ` Simon Patience
1993-12-06  8:03 ` Dave Yost
1993-12-08 10:45 ` Ronald F. Guilmette
1993-12-10 16:49   ` peter da silva
1993-12-12  3:11     ` Dave Griffith

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