Harvard vs. vonNeuman

From: Sean 'Captain Napalm' Conner <spc_at_conman.org>
Date: Tue Sep 28 22:56:48 2004

It was thus said that the Great Sean 'Captain Napalm' Conner once stated:
> > I know in C it is possible to pass an address of a function to a function,
> > that's not really what I mean.
> It violates ANSI C, and it certainly isn't portable, but yes, it can be
> done. Maybe. And when you get it working (I didn't, but I'm not going to
> waste much time on this), make sure you remember how you compiled it,
> because any changes in compiler options will set you back to square one.

  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
Received on Tue Sep 28 2004 - 22:56:48 BST

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