16 BIt C Compiler porting
임종윤
SAZABI@chollian.net
Tue Jun 1 18:41:00 GMT 1999
i had ported egcs to 16bit micro processor.
but that compiler could not distinguish between
short type and int type...
next code will generat addsi rtl rather than addhi rtl
short a , b
c = a + b ;
----------------
i had define some macro at /egcs/gcc/config/16bit/16bit.c
#define SHORT_TYPE_SIZE 16
#define INT_TYPE_SIZE 16
#define LONG_TYPE_SIZE 32
......
please tell me how to fix it~/
s
More information about the Gcc
mailing list