diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2016-01-20 06:43:17 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw44@gmail.com> | 2016-01-20 06:43:17 +0800 |
commit | 46b7c22b5f3fcb33c753ec7ddceba530999283f0 (patch) | |
tree | 61aa8450fdffe017c750dbc95fce47ac078534e7 /src/code-generation.h | |
parent | 9eebade5e06e86588a2810aa658c85bdc02b354e (diff) | |
download | compiler2015-46b7c22b5f3fcb33c753ec7ddceba530999283f0.tar compiler2015-46b7c22b5f3fcb33c753ec7ddceba530999283f0.tar.gz compiler2015-46b7c22b5f3fcb33c753ec7ddceba530999283f0.tar.bz2 compiler2015-46b7c22b5f3fcb33c753ec7ddceba530999283f0.tar.lz compiler2015-46b7c22b5f3fcb33c753ec7ddceba530999283f0.tar.xz compiler2015-46b7c22b5f3fcb33c753ec7ddceba530999283f0.tar.zst compiler2015-46b7c22b5f3fcb33c753ec7ddceba530999283f0.zip |
Support calling functions with arguments
1. The symbol attribute is modified to allow storing a related register
instead of a memory location.
2. Call check_relop_expr() on all scalar function arguments to make sure
that type information is available when generating code.
3. calc_array_offset() is modified to accept incomplete arrays, which is
used when passing parts of arrays as arguments.
4. It is currently possible to crash the code generator by calling a
function with more than 3 arguments.
Diffstat (limited to 'src/code-generation.h')
0 files changed, 0 insertions, 0 deletions