diff options
author | Jack Palevich <jackpal@google.com> | 2009-08-26 16:15:07 -0700 |
---|---|---|
committer | Jack Palevich <jackpal@google.com> | 2009-08-26 16:15:07 -0700 |
commit | 9221bcccb39a53c8cddf338e53d0cfa2201b52dd (patch) | |
tree | 26223c892eeea9bde195a30428f9112222c7d72f /cpio | |
parent | c0f253359f11c087a3ffc92b46755c6c96f57899 (diff) | |
download | system_core-9221bcccb39a53c8cddf338e53d0cfa2201b52dd.zip system_core-9221bcccb39a53c8cddf338e53d0cfa2201b52dd.tar.gz system_core-9221bcccb39a53c8cddf338e53d0cfa2201b52dd.tar.bz2 |
Preliminary struct and union support.
Working features:
- struct
- union
- nested structs
- anonymous structs
- forward declarations
- '.' and '->'
- copying structs using '='
Missing features:
- passing structs by value
- returning structs by value
- typedef
- sizeof
Example:
struct v {float x, y, z, w; };
void add(struct v* result, struct v* a, struct v* b) {
result->x = a->x + b->x;
result->y = a->y + b->y;
result->z = a->z + b->z;
result->w = a->w + b->w;
}
Reworked size-of and alignment logic to support structs.
Improved encoding of ARM immediate constants.
Diffstat (limited to 'cpio')
0 files changed, 0 insertions, 0 deletions