source: trunk/libs/newlib/src/libgloss/sparc/asm.h @ 473

Last change on this file since 473 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1.4 KB
Line 
1/* asm.h -- macros for sparc asm
2 *
3 * Copyright (c) 1996 Cygnus Support
4 *
5 * The authors hereby grant permission to use, copy, modify, distribute,
6 * and license this software and its documentation for any purpose, provided
7 * that existing copyright notices are retained in all copies and that this
8 * notice is included verbatim in any distributions. No written agreement,
9 * license, or royalty fee is required for any of the authorized uses.
10 * Modifications to this software may be copyrighted by their authors
11 * and need not follow the licensing terms described here, provided that
12 * the new terms are clearly indicated on the first page of each file where
13 * they apply.
14 */
15
16#ifndef __SPARC_ASM_h
17#define __SPARC_ASM_h
18
19/* Indicate we are in an assembly file and get the basic CPU definitions.  */
20#define ASM
21
22/* ANSI concatenation macros.  */
23#define CONCAT1(a, b) CONCAT2(a, b)
24#define CONCAT2(a, b) a ## b
25
26/* Use the right prefix for global labels.
27   Note that it's too late to have coff have no underscores
28   (would break user programs).
29   One school of thought likes having underscores for both a.out and coff
30   (simplicity in consistency).  */
31#define SYM(x) CONCAT1 (__USER_LABEL_PREFIX__,x)
32
33/* STRINGSYM makes a string out of a symbol name with the proper assembly
34   prefix.  Useful for inline assembly language in C source files.  */
35#define STRINGIT2(x) #x
36#define STRINGIT1(x) STRINGIT2(x)
37#define STRINGSYM(x) STRINGIT1(SYM(x))
38
39#endif
Note: See TracBrowser for help on using the repository browser.