defs.arm
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:

VxWorks

开发平台:

C/C++

  1. # defs.arm - ARM specific definitions for the GNU toolchain
  2. #
  3. # modification history
  4. # --------------------
  5. # 01c,24jun02,m_h  define LONGCALL to allow far away ld relocations
  6. # 01b,21jan02,sn   removed unused C++_TEMPLATE_INST
  7. # 01a,18dec01,to   written
  8. #
  9. # DESCRIPTION
  10. # This file contains ARM specific definitions and flags for the
  11. # GNU tools (compiler, assembler, linker etc.)
  12. #
  13. # NOTE
  14. # The file name comes from defs.$(VX_CPU_FAMILY)
  15. #
  16. include $(TGT_DIR)/h/tool/gnu/defs.gnu
  17. include $(TGT_DIR)/h/tool/common/defs.arm
  18. CC_OPTIM_DRIVER = -O2 -fno-builtin -fvolatile
  19. #CC_OPTIM_DRIVER = -O2 -fvolatile
  20. CC_OPTIM_NORMAL = -O2 -fno-builtin
  21. #CC_OPTIM_NORMAL = -O2
  22. CC_OPTIM_TARGET = -O2 -fno-builtin -fvolatile
  23. #CC_OPTIM_TARGET = -O2 -fvolatile
  24. LONGCALL = -mlong-calls
  25. ifeq  ($(findstring _T,$(CPU)),_T)
  26. # definitions for Thumb mode
  27. CC_ARCH_SPEC = -mthumb -mthumb-interwork
  28. else
  29. # definitions for ARM mode
  30. CC_ARCH_SPEC = -mapcs-32
  31. endif
  32. ifeq  ($(findstring be,$(TOOL)),be)
  33. # definitions for big endian
  34. CC_ARCH_SPEC += -mbig-endian
  35. LDFLAGS = -X -EB -N
  36. LD_PARTIAL_FLAGS= -X -EB -r
  37. else
  38. # definitions for little endian
  39. CC_ARCH_SPEC += -mlittle-endian
  40. LDFLAGS = -X -EL -N
  41. LD_PARTIAL_FLAGS= -X -EL -r
  42. endif
  43. # end of defs.arm