From mboxrd@z Thu Jan 1 00:00:00 1970 From: fche@redhat.com (Frank Ch. Eigler) To: apl@alum.mit.edu Cc: cgen@sourceware.cygnus.com Subject: Re: problems simulating register-only architecture... Date: Thu, 24 May 2001 16:04:00 -0000 Message-id: References: <200105242031.QAA10298.cygnus.local.cgen@iron> X-SW-Source: 2001-q2/msg00075.html lehotsky wrote: : The machine I'm developing a simulator for is a "register only" : architecture, whose only memory is 512, 32-bit registers. : [...] : There are 4 registers that are "special", in that : they are auto-indexed (e.g.) reading register X uses the contents of : register Y as an indirect register number. : [...] This stuff is tricky; some cgen features don't compose well. I'd advise keeping it simple: use c-call to hook to a single C getter-setter function pair, and hide the indirection within. (BTW, don't bother represent the actual RAM block (h-memory) within cgen.) - FChE