Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #499200

Re: Apollo guidance computer

Newsgroups sci.electronics.design
From Rob <nomail@example.com>
Subject Re: Apollo guidance computer
References <p8jon1$9df$1@dont-email.me> <wtsrC.1520$YE7.1245@fx26.iad>
Message-ID <slrnpasnos.nsm.nomail@xs9.xs4all.nl> (permalink)
Date 2018-03-18 12:44 +0000

Show all headers | View raw


bitrex <bitrex@de.lete.earthlink.net> wrote:
> On 03/17/2018 03:01 PM, Tom Del Rosso wrote:
>> This is really good and detailed.  I had no idea that computer had
>> virtual machine support for one thing.
>> 
>> https://www.youtube.com/watch?v=xx7Lfh5SKUQ
>> 
>> 
>
> Very common thing to do even nowadays when you have a large team working 
> on a codebase, who may be experts in their own field e.g., in game 
> development, logic/mechanics or art direction but are not themselves 
> hotshot C++ or asssembly-level programmers.
>
> Secure the underlying mission-critical codebase which performs the 
> intrinsically dangerous tasks of working directly with main 
> memory/registers into a set of higher-level known-good 
> "macroinstructions" which are interpreted and sequenced by a virtual 
> stack machine. That way while if the art director (or orbital mechanics 
> guy) is having a bad day they can certainly write VM code which is 
> nonsensical, but it's at least known that it isn't doing objectively 
> stupid and dangerous things like say overwriting stack frames or 
> registers in use by other tasks

The VM probably did not add any such safeguards at all, but the fact
that the instructions are more oriented towards the problem at hand
will reduce the codesize and thus make it fit into the rom.

I remember having the task (with a team of 3) to write software to
run on a Z-80 with 32K of EPROM.  The software consisted of some
low-level stuff handling interrupts, middleware that had to be
reasonably fast, and a large application that could well be slower.
We did not want to code it all in Z-80 assembly language.

We used the Aztec C compiler for that could generate machine code for
the Z-80 (or rather it was for the 8080 I think), and also a version
of the compiler that could generate code for a virtual machine. That
version was mainly marketed for 6502 targets.

With a mix of some low-level assembly code, some C code compiled to
machine code, the application C code compiled to p-code plus of course
the p-code interpreter written in assembly code we could fit everything
in the 32K and still have good performance.

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Apollo guidance computer "Tom Del Rosso" <fizzbintuesday@that-google-mail-domain.com> - 2018-03-17 15:01 -0400
  Re: Apollo guidance computer Rob <nomail@example.com> - 2018-03-18 11:02 +0000
    Re: Apollo guidance computer "Tom Del Rosso" <fizzbintuesday@that-google-mail-domain.com> - 2018-03-18 19:32 -0400
      Re: Apollo guidance computer Rob <nomail@example.com> - 2018-03-19 08:24 +0000
        Re: Apollo guidance computer "Tom Del Rosso" <fizzbintuesday@that-google-mail-domain.com> - 2018-03-19 12:45 -0400
          Re: Apollo guidance computer Jasen Betts <jasen@xnet.co.nz> - 2018-03-20 06:37 +0000
            Re: Apollo guidance computer bitrex <bitrex@de.lete.earthlink.net> - 2018-03-20 08:51 -0400
              Re: Apollo guidance computer bitrex <bitrex@de.lete.earthlink.net> - 2018-03-20 08:52 -0400
  Re: Apollo guidance computer bitrex <bitrex@de.lete.earthlink.net> - 2018-03-18 07:56 -0400
    Re: Apollo guidance computer Rob <nomail@example.com> - 2018-03-18 12:44 +0000
      Re: Apollo guidance computer bitrex <bitrex@de.lete.earthlink.net> - 2018-03-18 09:07 -0400

csiph-web