🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #6059

Variable-sized pointers

#6059
From: Richard Kiessig
Date: Thu, 12 Dec 1996 00:00
18 lines
1595 bytes
I'm working on a machine description for a word-addressable 16-bit CPU (the
architecture is similar to the 1750A, but with a completely different
instruction set).

I need to be able to support 8-bit chars, and char pointers.  The CPU has
instructions to access bytes, but I will need to implement 2-word pointers
to do this.  As far as I can tell, there is currently no support in gcc for
this.  So I am planning on adding the support myself.  However, I would
like to get input from other gcc developers before I get too far into this.
I would like to implement it in a fairly general way (i.e. pointers of an
arbitrary type can be of an arbitrary size), since I suspect there are
other machines (and possibly certain language features/options, like tags)
that could use this capability.  If anyone has thought about this before,
or if you have ideas about ways to do it or not to do it, I would
appreciate hearing about them.

Rick
Technical Details
Message-ID: <7b83253bcd4f94b71d20bcdc744a7478@wretched.mailer.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,6cb09febd7fa4c8c,start
X-Google-Attributes: gid113d02,public
From: "Richard Kiessig" <rick@kiessig.com>
Subject: Variable-sized pointers
Date: 1996/12/12
Message-ID: <7b83253bcd4f94b71d20bcdc744a7478@wretched.mailer.com>
X-Deja-AN: 203709717
sender: bug-gcc-request@prep.ai.mit.edu
x-sender: INX-10963c@SantaClara01.POP.InterNex.Net
content-type: text/plain; charset="us-ascii"
x-gateway: wendy-fate.uu.net from bug-gcc to gnu.gcc.bug; Thu, 12 Dec 1996 09:15:27 EST
return-path: <gnulists-usenet-ownrr@prep.ai.mit.edu>
mime-version: 1.0
newsgroups: gnu.gcc.bug