This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
pointer modes for Harvard architecture....
- From: Alan Lehotsky <qsmgmt at earthlink dot net>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 28 Jan 2012 22:53:06 -0500
- Subject: pointer modes for Harvard architecture....
- Reply-to: apl at alum dot mit dot edu
I'm working on a port to a Harvard architecture where the data memory addresses are only 14 bits wide (e.g. 16kb) and the instruction address space is 21 bits wide.
I do not want to define Pmode as PSImode; the machine has separate address registers for data memory AND with such limited data memory, I really want data pointers to stay HImode.
I've noticed that some generated function calls are appearing as
(call (mem:SI (symbol_ref:HI ("function_name") ....
which I suspect is wrong for code addresses outside of the first 65kb of instruction memory.
It would be helpful to see an existing port with wider function pointers to help me avoid stumbling over some of these issues. Is there a current port that has larger instruction memory addresses than data addresses?