embedded - How to compile objdump for the m32c architecture -


i use objdump view binary m32c files. when type in: objdump -i architecture list returned i386 based. looking @ source code binutils appears m32c architecture supported, not compiled in default.

i've seen arm-none-eabi-objdump embedded arm market. create compiled version of objdump m32c architecture. has done similar?

building binutils specific target pretty straightforward. if binutils hosted on windows, need install mingw/gcc , msys shell environment. within linux bash shell or msys on windows:

  1. create directory build tools ()
  2. create directory install tools ()
  3. extract binutils package , hereafter refers binutils verion building, , indicated in package name (binutils-.tar.bz2)
  4. working , configure package appropriate target , host:

../binutils-<version>/configure --target m32c-elf --prefix <installdir>

in windows can add configure command line --enable-win32-registry=gnu_m32c allow path lookup via registry. toolchain name gnu_m32c arbitrary - can call like.

  1. run make build tools.
  2. run make install-strip install tools.

note:

if installing on windows , used --enable-win32-registry option subsequently choose move installation, or installing pre-build tools on new host, need modify registry match; can done in regedit editing key hkey_local_machine\software\free software foundation\gnu_m32c, adding/modifying item:"binutils"="<installdir>" if have installed gcc there related keys:

"gcc"="<gccinstalldir>" "g++"="<gppinstalldir>" 

Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -