scf.git
2 years agoupdate README.md.
底层技术栈 [Wed, 19 Oct 2022 10:26:45 +0000 (10:26 +0000)]
update README.md.

Signed-off-by: 底层技术栈 <maja_creater@qq.com>
2 years agoupdate README.md.
底层技术栈 [Wed, 19 Oct 2022 10:26:12 +0000 (10:26 +0000)]
update README.md.

Signed-off-by: 底层技术栈 <maja_creater@qq.com>
2 years agooptimize: pointer dereference when the variable pointed can be identified,
yu.dongliang [Wed, 19 Oct 2022 09:45:25 +0000 (17:45 +0800)]
optimize: pointer dereference when the variable pointed can be identified,
such as:
int   a = 1;
int*  p = &a;
int** pp = &p;

**pp += 2; // this will be instead of 'a += 2', and 'p = &a; pp = &p' will be deleted.

2 years agofix & optimize: pointer dereference in if condition
yu.dongliang [Tue, 18 Oct 2022 15:03:47 +0000 (23:03 +0800)]
fix & optimize: pointer dereference in if condition

2 years agofix & optimize: dereference & assign in if condition, such as:
yu.dongliang [Tue, 18 Oct 2022 10:22:57 +0000 (18:22 +0800)]
fix & optimize: dereference & assign in if condition, such as:
if (*p = i > 0 && j > 1 && k > 2)
return -1;
return 0;

2 years agofix: BUG when && or || result needs to save,
yu.dongliang [Sun, 16 Oct 2022 08:11:11 +0000 (16:11 +0800)]
fix: BUG when && or || result needs to save,
such as: res = i > 1 && j > 2 || k > 3;
not: if (i > 1 && j > 2 || k > 3)

2 years agoupdate README.md.
底层技术栈 [Sat, 15 Oct 2022 08:38:05 +0000 (08:38 +0000)]
update README.md.

Signed-off-by: 底层技术栈 <maja_creater@qq.com>
2 years agoupdate README.md.
底层技术栈 [Sat, 15 Oct 2022 08:34:43 +0000 (08:34 +0000)]
update README.md.

Signed-off-by: 底层技术栈 <maja_creater@qq.com>
2 years agoupdate README.md.
底层技术栈 [Sat, 15 Oct 2022 08:06:52 +0000 (08:06 +0000)]
update README.md.

Signed-off-by: 底层技术栈 <maja_creater@qq.com>
2 years agorename executable file name to scf
yu.dongliang [Sat, 15 Oct 2022 07:56:03 +0000 (15:56 +0800)]
rename executable file name to scf

2 years ago1, rename scf_parse_test.c to main.c,
yu.dongliang [Sat, 15 Oct 2022 07:21:59 +0000 (15:21 +0800)]
1, rename scf_parse_test.c to main.c,
2, optimize 3ac code for && and ||

2 years ago1, it is a clone of github for Simple Compiler Framework,
yu.dongliang [Tue, 5 Jul 2022 09:34:29 +0000 (17:34 +0800)]
1, it is a clone of github for Simple Compiler Framework,
2, please goto there to see details of git-logs,
3, I don't know how to push code with git-logs here, so copy the code only.

4, If issues, please ask me to 头条:底层技术栈,或百家号:闲聊代码,or here email.

2 years agoInitial commit
底层技术栈 [Tue, 5 Jul 2022 09:18:44 +0000 (09:18 +0000)]
Initial commit