Harvard vs. vonNeuman

From: Ethan Dicks <dickset_at_amanda.spole.gov>
Date: Tue Sep 28 22:53:58 2004

On Sat, Feb 11, 2006 at 11:39:25PM -0500, Sean 'Captain Napalm' Conner wrote:
> Okay, figured out why my code didn't work, and it's not due to writing to
> the wrong location (although I suspect that still is a problem) but that
> under Unix the code pages are marked read-only so of course it core dumped.
>
> -spc (Another reason why self-modifying code is hard to do in C 8-P

But there are C compilers for the 68000, 6502, etc., for OSes that do _not_
require an MMU or other enforcement hardware (like AmigaDOS), let alone for
standalone programs for embedded environments (we had a C compiler for the
68000 for our COMBOARDs - 100% of the code was our own - no OS).

Some variant of your technique would work in any of those environments; the
'restriction' in this case is a UNIX one, not a C one.

-ethan

-- 
Ethan Dicks, A-130-S      Current South Pole Weather at 29-Sep-2004 03:50 Z
South Pole Station
PSC 468 Box 400       Temp -55.2 F (-48.5 C)    Windchill      -99 F (-72.8 C)
APO AP 96598          Wind  23.1 kts Grid 011   Barometer 683.1 mb (10508. ft)
Ethan.Dicks_at_amanda.spole.gov     http://penguincentral.com/penguincentral.html
Received on Tue Sep 28 2004 - 22:53:58 BST

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:37:32 BST