Author Topic: Iwmmxt Cross-compiler Setup  (Read 6867 times)

spartan

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
Iwmmxt Cross-compiler Setup
« Reply #15 on: November 12, 2005, 11:37:16 am »
I have a working GCC 3.2.3 / GLIBC 2.2.5 toolchain for statically-linked binaries. That is pretty much useless, as it does not emit iWMMXT instructions.

However, what do I have to do to force the make command to use the arm toolchain?
C3000 with Tetsu v18d Special Kernel and Sharp 1.11JP ROM
1GB Lexmark SD, 2GB Mini SD, Socket Revision H Bluetooth, Ambicom Wi-Fi

spartan

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
Iwmmxt Cross-compiler Setup
« Reply #16 on: November 13, 2005, 12:37:23 am »
I also have a working GCC 3.4.4 / GLIBC 2.2.5 iWMMXt toolchain, build without patches through crosstool.

Testing the hello and hello2 applications, both linked and static, yielded the following results:

$ ./hello1
Hello, world!  LONG_MIN is -2147483648, PATH_MAX is 4096
$ ./hello1static
Illegal instruction
$ ./hello2
./hello2: error while loading shared libraries: libstdc++.so.6: cannot load shared object file: No such file or directory
$ ./hello2static
Illegal instruction

What does this mean?
C3000 with Tetsu v18d Special Kernel and Sharp 1.11JP ROM
1GB Lexmark SD, 2GB Mini SD, Socket Revision H Bluetooth, Ambicom Wi-Fi

Da_Blitz

  • Hero Member
  • *****
  • Posts: 1579
    • View Profile
    • http://www.pocketnix.org
Iwmmxt Cross-compiler Setup
« Reply #17 on: November 14, 2005, 12:25:18 am »
did you issue your ./configure with a --build="your tool chain name here" and added CC="-mcpu=iwmmxt -march=iwmmxt" to tell it to use the iwmmx instruction,

just a side note but a program has to be written to use the iwmmxt instructions as they dont make up part  of the default instruction set (its actually a co processor hanging off the coprocessor bus and interfaced using the coprocessor minipulation instructions for arm processor) all the march and mcpu will do is take into acount the instructions avalible and cache sizes as well as perfromace info for the iwmmxt platform to get more perfromance out ot it, ie you dont want you compiler assuming you have 64KB of cache when you CPU has only 32KB for Instructions
Personal Blog
Code
Twitter

Gemini Order: #95 (roughly)
Current Device: Samsung Chromebook Gen 3
Current Arm Devices Count: ~30
Looking to acquire: Cavium Thunder X2 Hardware