Suppose I am crazy and I want to directly compile something on my RT3050
chip. Has anyone tried this? Will the compiler work in 32MB? I can load it
via a USB stick so there is plenty of storage. I only want to compile small
programs - a few thousand lines.

Right now I am trying to cross compile a native MIPS GCC and I'm having a
lot of issues.

Here's my current failure...
c -c -DIN_GCC    -DGENERATOR_FILE -I. -Ibuild -I../.././gcc
-I../.././gcc/build -I../.././gcc/../include
-I../.././gcc/../libcpp/include  -I../.././gcc/../libdecnumber
-I../.././gcc/../libdecnumber/dpd -I../libdecnumber    \
-o build/genflags.o ../.././gcc/genflags.c
In file included from ../.././gcc/rtl.h:28:0,
                 from ../.././gcc/genflags.c:28:
../.././gcc/real.h:77:13: error: size of array 'test_real_width' is negative

Source...

/* We store a REAL_VALUE_TYPE into an rtx, and we do this by putting it in
   consecutive "w" slots.  Moreover, we've got to compute the number of "w"
   slots at preprocessor time, which means we can't use sizeof.  Guess.  */

#define REAL_VALUE_TYPE_SIZE (SIGNIFICAND_BITS + 32)
#define REAL_WIDTH \
  (REAL_VALUE_TYPE_SIZE/HOST_BITS_PER_WIDE_INT \
   + (REAL_VALUE_TYPE_SIZE%HOST_BITS_PER_WIDE_INT ? 1 : 0)) /* round up */

/* Verify the guess.  */
extern char test_real_width
  [sizeof(REAL_VALUE_TYPE) <= REAL_WIDTH*sizeof(HOST_WIDE_INT) ? 1 : -1];


-- 
Jon Smirl
jonsm...@gmail.com
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to