OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [config/] [i386/] [att.h] - Blame information for rev 832

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
/* Definitions for AT&T assembler syntax for the Intel 80386.
2
   Copyright (C) 1988, 1996, 2000, 2001, 2002, 2007
3
   Free Software Foundation, Inc.
4
 
5
This file is part of GCC.
6
 
7
GCC is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 3, or (at your option)
10
any later version.
11
 
12
GCC is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
GNU General Public License for more details.
16
 
17
You should have received a copy of the GNU General Public License
18
along with GCC; see the file COPYING3.  If not see
19
<http://www.gnu.org/licenses/>.  */
20
 
21
 
22
/* Define the syntax of instructions and addresses.  */
23
 
24
/* Prefix for internally generated assembler labels.  */
25
#define LPREFIX ".L"
26
 
27
/* Assembler pseudos to introduce constants of various size.  */
28
 
29
#define ASM_SHORT "\t.value\t"
30
#define ASM_LONG "\t.long\t"
31
#define ASM_QUAD "\t.quad\t"  /* Should not be used for 32bit compilation.  */
32
 
33
/* How to output an ASCII string constant.  */
34
 
35
#define ASM_OUTPUT_ASCII(FILE, PTR, SIZE)                       \
36
do                                                              \
37
{ size_t i = 0, limit = (SIZE);                          \
38
  while (i < limit)                                             \
39
    { if (i%10 == 0) { if (i!=0) fprintf ((FILE), "\n");  \
40
                       fputs ("\t.byte\t", (FILE)); }           \
41
      else fprintf ((FILE), ",");                               \
42
        fprintf ((FILE), "0x%x", ((PTR)[i++] & 0377)) ;}        \
43
      fprintf ((FILE), "\n");                                   \
44
} while (0)
45
 
46
/* Output at beginning of assembler file.  */
47
#define TARGET_ASM_FILE_START_FILE_DIRECTIVE true
48
 
49
/* This is how to output an assembler line
50
   that says to advance the location counter
51
   to a multiple of 2**LOG bytes.  */
52
 
53
#define ASM_OUTPUT_ALIGN(FILE,LOG)      \
54
    if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", 1<<(LOG))
55
 
56
/* This is how to output an assembler line
57
   that says to advance the location counter by SIZE bytes.  */
58
 
59
#define ASM_OUTPUT_SKIP(FILE,SIZE)  \
60
  fprintf ((FILE), "\t.set .,.+%u\n", (int)(SIZE))
61
 
62
/* Can't use ASM_OUTPUT_SKIP in text section; it doesn't leave 0s.  */
63
 
64
#define ASM_NO_SKIP_IN_TEXT 1
65
 
66
/* Define the syntax of labels and symbol definitions/declarations.  */
67
 
68
/* The prefix to add for compiler private assembler symbols.  */
69
#undef LOCAL_LABEL_PREFIX
70
#define LOCAL_LABEL_PREFIX "."
71
 
72
/* This is how to store into the string BUF
73
   the symbol_ref name of an internal numbered label where
74
   PREFIX is the class of label and NUM is the number within the class.
75
   This is suitable for output with `assemble_name'.  */
76
 
77
#undef ASM_GENERATE_INTERNAL_LABEL
78
#define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER)  \
79
  sprintf ((BUF), "%s%s%ld", LOCAL_LABEL_PREFIX, (PREFIX), (long)(NUMBER))
80
 
81
/* The prefix to add to user-visible assembler symbols.  */
82
 
83
#undef USER_LABEL_PREFIX
84
#define USER_LABEL_PREFIX ""

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.