const char * TARGET_ASM_BYTE_OP | Target Hook |
const char * TARGET_ASM_ALIGNED_HI_OP | Target Hook |
const char * TARGET_ASM_ALIGNED_SI_OP | Target Hook |
const char * TARGET_ASM_ALIGNED_DI_OP | Target Hook |
const char * TARGET_ASM_ALIGNED_TI_OP | Target Hook |
const char * TARGET_ASM_UNALIGNED_HI_OP | Target Hook |
const char * TARGET_ASM_UNALIGNED_SI_OP | Target Hook |
const char * TARGET_ASM_UNALIGNED_DI_OP | Target Hook |
const char * TARGET_ASM_UNALIGNED_TI_OP | Target Hook |
These hooks specify assembly directives for creating certain kinds
of integer object. The TARGET_ASM_BYTE_OP directive creates a
byte-sized object, the TARGET_ASM_ALIGNED_HI_OP one creates an
aligned two-byte object, and so on. Any of the hooks may be
NULL , indicating that no suitable directive is available.
The compiler will print these strings at the start of a new line, followed immediately by the object's initial value. In most cases, the string should contain a tab, a pseudo-op, and then another tab. |
bool TARGET_ASM_INTEGER (rtx x, unsigned int size, int aligned_p) | Target Hook |
The assemble_integer function uses this hook to output an
integer object. x is the object's value, size is its size
in bytes and aligned_p indicates whether it is aligned. The
function should return true if it was able to output the
object. If it returns false, assemble_integer will try to
split the object into smaller parts.
The default implementation of this hook will use the
|
OUTPUT_ADDR_CONST_EXTRA (
stream,
x,
fail)
output_addr_const
can't deal with, and output assembly code to
stream corresponding to the pattern x. This may be used to
allow machine-dependent UNSPEC
s to appear within constants.
If OUTPUT_ADDR_CONST_EXTRA
fails to recognize a pattern, it must
goto fail
, so that a standard error message is printed. If it
prints an error message itself, by calling, for example,
output_operand_lossage
, it may just complete normally.
ASM_OUTPUT_ASCII (
stream,
ptr,
len)
char *
and len a C expression of type int
.
If the assembler has a .ascii
pseudo-op as found in the
Berkeley Unix assembler, do not define the macro
ASM_OUTPUT_ASCII
.
ASM_OUTPUT_FDESC (
stream,
decl,
n)
TARGET_VTABLE_USES_DESCRIPTORS
is defined, and is otherwise unused.
CONSTANT_POOL_BEFORE_FUNCTION
ASM_OUTPUT_POOL_PROLOGUE (
file,
funname,
fundecl,
size)
If no constant-pool prefix is required, the usual case, this macro need
not be defined.
ASM_OUTPUT_SPECIAL_POOL_ENTRY (
file,
x,
mode,
align,
labelno,
jumpto)
The argument file is the standard I/O stream to output the
assembler code on. x is the RTL expression for the constant to
output, and mode is the machine mode (in case x is a
const_int
). align is the required alignment for the value
x; you should output an assembler directive to force this much
alignment.
The argument labelno is a number to use in an internal label for the address of this pool entry. The definition of this macro is responsible for outputting the label definition at the proper place. Here is how to do this:
(*targetm.asm_out.internal_label)
(file, "LC", labelno);
When you output a pool entry specially, you should end with a
goto
to the label jumpto. This will prevent the same pool
entry from being output a second time in the usual manner.
You need not define this macro if it would do nothing.
CONSTANT_AFTER_FUNCTION_P (
exp)
tree
, should be output after the code for a
function. The compiler will normally output all constants before the
function; you need not define this macro if this is OK.
ASM_OUTPUT_POOL_EPILOGUE (
file
funname
fundecl
size)
If no constant-pool epilogue is required, the usual case, you need not
define this macro.
IS_ASM_LOGICAL_LINE_SEPARATOR (
C)
If you do not define this macro, the default is that only
the character ;
is treated as a logical line separator.
const char * TARGET_ASM_OPEN_PAREN | Target Hook |
const char * TARGET_ASM_CLOSE_PAREN | Target Hook |
These target hooks are C string constants, describing the syntax in the assembler for grouping arithmetic expressions. If not overridden, they default to normal parentheses, which is correct for most assemblers. |
These macros are provided by real.h
for writing the definitions
of ASM_OUTPUT_DOUBLE
and the like:
REAL_VALUE_TO_TARGET_SINGLE (
x,
l)
REAL_VALUE_TO_TARGET_DOUBLE (
x,
l)
REAL_VALUE_TO_TARGET_LONG_DOUBLE (
x,
l)
REAL_VALUE_TYPE
, to the target's
floating point representation, and store its bit pattern in the variable
l. For REAL_VALUE_TO_TARGET_SINGLE
, this variable should
be a simple long int
. For the others, it should be an array of
long int
. The number of elements in this array is determined by
the size of the desired target floating point data type: 32 bits of it
go in each long int
array element. Each array element holds 32
bits of the result, even if long int
is wider than 32 bits on the
host machine.
The array element values are designed so that you can print them out
using fprintf
in the order they should appear in the target
machine's memory.