/vendor/gc/doc/README.arm.cross

http://github.com/feyeleanor/RubyGoLightly · Unknown · 68 lines · 52 code · 16 blank · 0 comment · 0 complexity · 0d28d19a4f2f32c564dba6f92f975ad4 MD5 · raw file

  1. From: Margaret Fleck
  2. Here's the key details of what worked for me, in case anyone else needs them.
  3. There may well be better ways to do some of this, but ....
  4. -- Margaret
  5. The badge4 has a StrongArm-1110 processor and a StrongArm-1111 coprocessor.
  6. Assume that the garbage collector distribution is unpacked into /home/arm/gc6.0,
  7. which is visible to both the ARM machine and a linux desktop (e.g. via NFS mounting).
  8. Assume that you have a file /home/arm/config.site with contents something like the
  9. example attached below. Notice that our local ARM toolchain lives in
  10. /skiff/local.
  11. Go to /home/arm/gc6.0 directory. Do
  12. CONFIG_SITE=/home/arm/config.site ./configure --target=arm-linux
  13. --prefix=/home/arm/gc6.0
  14. On your desktop, do:
  15. make
  16. make install
  17. The main garbage collector library should now be in ../gc6.0/lib/libgc.so.
  18. To test the garbage collector, first do the following on your desktop
  19. make gctest
  20. ./gctest
  21. Then do the following on the ARM machine
  22. cd .libs
  23. ./lt-gctest
  24. Do not try to do "make test" (the usual way of running the test
  25. program). This does not work and seems to erase some of the important
  26. files.
  27. The gctest program claims to have succeeded. Haven't run any further tests
  28. with it, though I'll be doing so in the near future.
  29. -------------------------------
  30. # config.site for configure
  31. # Modified from the one provided by Bradley D. LaRonde
  32. # Edited by Andrej Cedilnik <acedil1@csee.umbc.edu>
  33. # Used some of solutions by Tilman Vogel <Tilman.Vogel@web.de>
  34. # Ported for iPAQ Familiar by Oliver Kurth <oliver.kurth@innominate.com>
  35. # Further modified by Margaret Fleck for the badge4
  36. HOSTCC=gcc
  37. # Names of the cross-compilers
  38. CC=/skiff/local/bin/arm-linux-gcc
  39. CXX=/skiff/local/bin/arm-linux-gcc
  40. # The cross compiler specific options
  41. CFLAGS="-O2 -fno-exceptions"
  42. CXXFLAGS="-O2 -fno-exceptions"
  43. CPPFLAGS="-O2 -fno-exceptions"
  44. LDFLAGS=""
  45. # Some other programs
  46. AR=/skiff/local/bin/arm-linux-ar
  47. RANLIB=/skiff/local/bin/arm-linux-ranlib
  48. NM=/skiff/local/bin/arm-linux-nm
  49. ac_cv_path_NM=/skiff/local/bin/arm-linux-nm
  50. ac_cv_func_setpgrp_void=yes
  51. x_includes=/skiff/local/arm-linux/include/X11
  52. x_libraries=/skiff/local/arm-linux/lib/X11