[ELDK] char type is being interpreted as 'unsigned char'
Thomas Lange
thomas at corelatus.se
Thu Feb 21 14:21:51 CET 2008
Dipanjan Dutta wrote:
> Hi,
>
> I'm using 'char' data types in my program. On Redhat enterprise
> (2.6.9-55.ELsmp / gcc 3.4.6) it is being interpreted as 'signed char'
> and providing a value range of -128 to +127.
>
> When I cross compile for ELDK 4.1/PPC 8280 (using ARCH=powerpc /
> CROSS_COMPILE=ppc_6xx-, ppc_6xx-gcc 4.0.0), char is getting interpreted
> as 'unsigned char' and providing a value range of 0 - 255.
>
> Is there a way I can make 'char' being interpreted as 'signed char' on
> this ELDK platform?
Add -fsigned-char to compile flags.
/Thomas
More information about the eldk
mailing list