asmsparc.h
上传用户:shenzhenrh
上传日期:2013-05-12
资源大小:2904k
文件大小:1k
源码类别:

信息检索与抽取

开发平台:

Unix_Linux

  1. // Assembly language support for sparc CPU.
  2. // Bruno Haible 29.5.1999
  3. #ifdef ASM_UNDERSCORE
  4. // SunOS4, Linux/a.out
  5. #ifdef __STDC__
  6. #define C(entrypoint) _##entrypoint
  7. #else
  8. #define C(entrypoint) _/**/entrypoint
  9. #endif
  10. #else
  11. // Solaris, Linux/ELF
  12. #define C(entrypoint) entrypoint
  13. #endif
  14. // When assembly language code is compiled into a shared library, ELF linkers
  15. // need to know which symbols are functions.
  16. #if defined(__NetBSD__) || defined(__OpenBSD__)
  17. #define DECLARE_FUNCTION(name) .type C(name),@function
  18. #elif defined(__svr4__) || defined(__ELF__)
  19. // Solaris, Linux/ELF
  20. // Some preprocessors keep the backslash in place, some don't.
  21. // Some complain about the # being not in front of an ANSI C macro.
  22. // Therefore we use a dollar, which will be sed-converted to # later.
  23. #define DECLARE_FUNCTION(name) .type C(name),$function
  24. #else
  25. // SunOS4, Linux/a.out
  26. #define DECLARE_FUNCTION(name)
  27. #endif