summaryrefslogtreecommitdiffstats
path: root/src/code-generation.h
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2016-01-20 06:43:17 +0800
committerTing-Wei Lan <lantw44@gmail.com>2016-01-20 06:43:17 +0800
commit46b7c22b5f3fcb33c753ec7ddceba530999283f0 (patch)
tree61aa8450fdffe017c750dbc95fce47ac078534e7 /src/code-generation.h
parent9eebade5e06e86588a2810aa658c85bdc02b354e (diff)
downloadcompiler2015-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