diff options
| author | Joe Soroka <gits@joesoroka.com> | 2011-04-09 23:41:16 -0700 |
|---|---|---|
| committer | Joe Soroka <gits@joesoroka.com> | 2011-04-09 23:41:16 -0700 |
| commit | 1b0f42f8ad542efd9ddc4568822a6ad97a1a0da6 (patch) | |
| tree | b1b5252a109cf7252419cd81d0e013cb8698873f /tcc-doc.texi | |
| parent | 1b8c094f3989fa9d7e2d63844378bb7044d0fbfc (diff) | |
| download | tinycc-1b0f42f8ad542efd9ddc4568822a6ad97a1a0da6.tar.gz tinycc-1b0f42f8ad542efd9ddc4568822a6ad97a1a0da6.tar.bz2 | |
update documentation to reflect VLA changes
Diffstat (limited to 'tcc-doc.texi')
| -rw-r--r-- | tcc-doc.texi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tcc-doc.texi b/tcc-doc.texi index 2804d57..5f30ac4 100644 --- a/tcc-doc.texi +++ b/tcc-doc.texi @@ -947,7 +947,7 @@ longs. Arrays are considered as pointers @code{VT_PTR} with the flag @code{VT_ARRAY} set. Variable length arrays are considered as special -arrays and therefore also have flag @code{VT_VLA} set. +arrays and have flag @code{VT_VLA} set instead of @code{VT_ARRAY}. The @code{VT_BITFIELD} flag can be set for chars, shorts, ints and long longs. If it is set, then the bitfield position is stored from bits @@ -980,8 +980,8 @@ it). @code{Sym.t} gives the type of the symbol. @code{Sym.r} is usually the register in which the corresponding variable is stored. @code{Sym.c} is usually a constant associated to the symbol like its address for normal symbols, and the number of entries for symbols representing arrays. -Variable length arrays use @code{Sym.r} instead, which is a pointer to -a @code{SValue} holding its runtime size. +Variable length array types use @code{Sym.c} as a location on the stack +which holds the runtime sizeof for the type. Four main symbol stacks are defined: |
