This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

pointer modes for Harvard architecture....


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? 







Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]