Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #499203
| Subject | Re: Apollo guidance computer |
|---|---|
| Newsgroups | sci.electronics.design |
| References | <p8jon1$9df$1@dont-email.me> <wtsrC.1520$YE7.1245@fx26.iad> <slrnpasnos.nsm.nomail@xs9.xs4all.nl> |
| From | bitrex <bitrex@de.lete.earthlink.net> |
| Message-ID | <dwtrC.3785$vs1.95@fx44.iad> (permalink) |
| Organization | frugalusenet - www.frugalusenet.com |
| Date | 2018-03-18 09:07 -0400 |
On 03/18/2018 08:44 AM, Rob wrote: > 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. Fair 'nuff, the hardware for the AGC was quite limited and anyone allowed to touch the codebase in that situation knew as much as anyone; abstracting for the purpose of security likely came later > 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. > There's a "VM layer" available for Harvard-architecture AVR 8-bit, even; it pulls compiled AVR object code from mass storage and while the actual opcode instruction is executed by the chip's ALU IIRC it uses the storage media as the VM's memory space and stack and does all the decoding in software. If one can accept an effective clock rate of say 200 kHz on a 20 MHz processor when executing the code on mass storage the sky's the limit on program size, whatever can fit on say a 64 or 128 gig SD flash memory card
Back to sci.electronics.design | Previous | Next — Previous in thread | Find similar | Unroll 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