%align
align size -- gforth ``%align''
align the data space pointer to the alignment align
.
%alignment
align size -- align gforth ``%alignment''
the alignment of the structure
%alloc
size align -- addr gforth ``%alloc''
allocate size
address units with alignment align
,
giving a data block at addr
; throw
s an ior code
if not successful.
%allocate
align size -- addr ior gforth ``%allocate''
allocate size
address units with alignment align
,
similar to allocate
.
%allot
align size -- addr gforth ``%allot''
allot size
address units of data space with alignment
align
; the resulting block of data is found at
addr
.
cell%
-- align size gforth ``cell%''
char%
-- align size gforth ``char%''
dfloat%
-- align size gforth ``dfloat%''
double%
-- align size gforth ``double%''
end-struct
align size "name" -- gforth ``end-struct''
name
execution: addr1 -- addr1+offset1
create a field name
with offset offset1
, and the type
given by size align
. offset2
is the offset of the
next field, and align2
is the alignment of all fields.
field
align1 offset1 align size "name" -- align2 offset2 gforth ``field''
name execution: ( addr1 -- addr2 )
float%
-- align size gforth ``float%''
nalign
addr1 n -- addr2 gforth ``nalign''
addr2
is the aligned version of addr1
wrt the
alignment n
.
sfloat%
-- align size gforth ``sfloat%''
%size
align size -- size gforth ``%size''
the size of the structure
struct
-- align size gforth ``struct''
an empty structure, used to start a structure definition.
Go to the first, previous, next, last section, table of contents.