yasm_bytecode Struct Reference

A bytecode. More...

#include <bytecode.h>


Public Member Functions

 STAILQ_ENTRY (yasm_bytecode) link
 Bytecodes are stored as a singly linked list, with tail insertion.

Data Fields

const yasm_bytecode_callbackcallback
 The bytecode callback structure for this bytecode.
yasm_sectionsection
 Pointer to section containing bytecode; NULL if not part of a section.
yasm_exprmultiple
 Number of times bytecode is repeated.
unsigned long len
 Total length of entire bytecode (not including multiple copies).
long mult_int
 Number of copies, integer version.
unsigned long line
 Line number where bytecode was defined.
unsigned long offset
 Offset of bytecode from beginning of its section.
unsigned long bc_index
 Unique integer index of bytecode.
yasm_symrec ** symrecs
 NULL-terminated array of labels that point to this bytecode (as the bytecode previous to the label).
void * contents
 Implementation-specific data (type identified by callback).


Detailed Description

A bytecode.

Definition at line 176 of file bytecode.h.


Member Function Documentation

yasm_bytecode::STAILQ_ENTRY ( yasm_bytecode   ) 

Bytecodes are stored as a singly linked list, with tail insertion.

See also:
section.h (yasm_section).


Field Documentation

const yasm_bytecode_callback* yasm_bytecode::callback

The bytecode callback structure for this bytecode.

May be NULL during partial initialization.

Definition at line 185 of file bytecode.h.

yasm_expr* yasm_bytecode::multiple

Number of times bytecode is repeated.

NULL=1 (to save space in the common case).

Definition at line 195 of file bytecode.h.

unsigned long yasm_bytecode::len

Total length of entire bytecode (not including multiple copies).

Definition at line 198 of file bytecode.h.

long yasm_bytecode::mult_int

Number of copies, integer version.

Definition at line 201 of file bytecode.h.

unsigned long yasm_bytecode::line

Line number where bytecode was defined.

Definition at line 204 of file bytecode.h.

unsigned long yasm_bytecode::offset

Offset of bytecode from beginning of its section.

0-based, ~0UL (e.g. all 1 bits) if unknown.

Definition at line 209 of file bytecode.h.

unsigned long yasm_bytecode::bc_index

Unique integer index of bytecode.

Used during optimization.

Definition at line 212 of file bytecode.h.

yasm_symrec** yasm_bytecode::symrecs

NULL-terminated array of labels that point to this bytecode (as the bytecode previous to the label).

NULL if no labels point here.

Definition at line 217 of file bytecode.h.

void* yasm_bytecode::contents

Implementation-specific data (type identified by callback).

Definition at line 220 of file bytecode.h.


The documentation for this struct was generated from the following file:
Generated on Sat Sep 6 01:23:37 2008 for libyasm by  doxygen 1.5.2