代码拉取完成,页面将自动刷新
UNRESOLVED BUGS
(1) Submitted by Quan Tran in 10/2015
Thanks a lot!
Dont miss his improved Go version of SubC at:
https://github.com/qeedquan/gosubc
The SubC bootstrap compiler generated by gcc/clang uses
4-byte int, so it will generate wrong code for x86_64
regarding numbers out of 4-byte range, so the asm will
mismatch against the compiler. However, the final scc built
from the scc0 and scc1 bootstrap will use 8-byte int on
x86_64, so that will be correct.
SubC does not support passing struct/unions as values, but it
allows you to declare it in function parameters, e.g.:
void f(struct foo x) {}
Switch statements may contain duplicate cases.
SubC allows externs in local declarations to be initialized:
void f() { extern int a = 10; } /* should not be allowed! */
SubC can only index arrays using indexes of int types, e.g.:
given
int a[10], b[2];
char x[10];
a[x[0]] does not work but a[b[0]] does work even though x[0]
does generate a valid integer index. Workaround: a[x[0]+0],
which will promote x[0] to int.
SubC currently allows any unary ops on any types, even on
structs: e.g.:
struct file f; !f;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。