summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
yu.dongliang [Wed, 27 Dec 2023 16:45:56 +0000 (00:45 +0800)]
delete some unused code
yu.dongliang [Tue, 26 Dec 2023 14:00:35 +0000 (22:00 +0800)]
delete 'bb_list_head' in optimizer callback()
yu.dongliang [Mon, 18 Dec 2023 15:01:27 +0000 (23:01 +0800)]
delete some unused code
yu.dongliang [Mon, 18 Dec 2023 12:12:56 +0000 (20:12 +0800)]
add some free() code, delete some unused code
yu.dongliang [Thu, 7 Dec 2023 06:40:07 +0000 (14:40 +0800)]
delete some unused code
yu.dongliang [Sun, 3 Dec 2023 12:07:52 +0000 (20:07 +0800)]
1, delete some repeated code,
2, fix: x64 native code error for 'examples/x64_sib.c'
yu.dongliang [Thu, 30 Nov 2023 07:09:02 +0000 (15:09 +0800)]
update ../core/scf_optimizer_active_vars.c
yu.dongliang [Wed, 29 Nov 2023 08:34:35 +0000 (16:34 +0800)]
fix: 1, ELF core dump caused by GROUP peephole for '../examples/recursive_pointer.c'
2, auto gc analysis failed for '../examples/recursive_pointer.c'
yu.dongliang [Wed, 29 Nov 2023 03:53:25 +0000 (11:53 +0800)]
fix: core dump when x64 peephole like 'mov 1,eax', for ../examples/auto_gc_0.c
yu.dongliang [Tue, 28 Nov 2023 10:18:22 +0000 (18:18 +0800)]
README.md
yu.dongliang [Tue, 28 Nov 2023 10:14:09 +0000 (18:14 +0800)]
fix: some bugs in pointer analysis
yu.dongliang [Mon, 27 Nov 2023 07:26:16 +0000 (15:26 +0800)]
fix: pointer alias error in scf_p2a() of ../examples/scf_printf.c
yu.dongliang [Mon, 27 Nov 2023 04:52:30 +0000 (12:52 +0800)]
1, fix: core dump when multi-include same file in '../examples/complex.c',
2, add some examples
yu.dongliang [Mon, 27 Nov 2023 04:50:02 +0000 (12:50 +0800)]
tmp
yu.dongliang [Mon, 27 Nov 2023 04:27:41 +0000 (12:27 +0800)]
delete & revise some test code
yu.dongliang [Mon, 27 Nov 2023 04:00:54 +0000 (12:00 +0800)]
a simple 'malloc()' example: ../test/scf_malloc.c
yu.dongliang [Mon, 27 Nov 2023 03:50:17 +0000 (11:50 +0800)]
optimize pointer alias & add a test '../examples/pointer_opt.c'
yu.dongliang [Sun, 26 Nov 2023 17:15:49 +0000 (01:15 +0800)]
optimize 3ac code of pointer alias
yu.dongliang [Sat, 25 Nov 2023 15:54:13 +0000 (23:54 +0800)]
fix: core dump when test 'examples/declare_vars.c'
yu.dongliang [Thu, 23 Nov 2023 08:30:17 +0000 (16:30 +0800)]
delete some unused member vars
yu.dongliang [Sun, 19 Nov 2023 16:07:00 +0000 (00:07 +0800)]
fix: auto gc error for '../examples/str.c'
yu.dongliang [Sun, 19 Nov 2023 14:07:57 +0000 (22:07 +0800)]
add '-t' option to generate 3ac code only
yu.dongliang [Mon, 13 Nov 2023 01:27:40 +0000 (09:27 +0800)]
native/eda/scf_eda.proto
yu.dongliang [Sat, 11 Nov 2023 14:28:15 +0000 (22:28 +0800)]
__eda_bit_adc()
yu.dongliang [Wed, 25 Oct 2023 07:00:41 +0000 (15:00 +0800)]
update 'ScfEpin' of native EDA module
yu.dongliang [Thu, 19 Oct 2023 09:52:38 +0000 (17:52 +0800)]
use 'NOR, NAND' in EDA module when make electronic graph, don't use 'OR, AND'
yu.dongliang [Wed, 4 Oct 2023 15:54:00 +0000 (23:54 +0800)]
native/eda
yu.dongliang [Wed, 13 Sep 2023 08:30:03 +0000 (16:30 +0800)]
add a test 'examples/oop.c', and fix some bugs caused by it
yu.dongliang [Thu, 7 Sep 2023 14:35:28 +0000 (22:35 +0800)]
update 'native/eda/scf_eda.proto'
yu.dongliang [Mon, 7 Aug 2023 08:38:55 +0000 (16:38 +0800)]
1, fix: DAG optimize error for code 'for (pp = &h; *pp; pp = &(*pp)->next)',
2, update scf_eda.proto
yu.dongliang [Sun, 6 Aug 2023 10:56:13 +0000 (18:56 +0800)]
fix: x64 peephole
yu.dongliang [Sat, 29 Jul 2023 13:39:46 +0000 (21:39 +0800)]
change scf_eda.proto for native/eda
yu.dongliang [Sun, 16 Jul 2023 04:24:58 +0000 (12:24 +0800)]
update the code of eda backend in scf native, electronic graph is ok for xor()
yu.dongliang [Thu, 6 Jul 2023 13:06:34 +0000 (21:06 +0800)]
add eda backend in scf native, to make a C code to digit electronic graph
yu.dongliang [Thu, 29 Jun 2023 14:06:49 +0000 (22:06 +0800)]
fix: arm64 for code below,
bit xor(bit x, bit y)
{
return (x | y) & ~(x & y);
}
yu.dongliang [Fri, 23 Jun 2023 04:10:28 +0000 (12:10 +0800)]
x64: re-open peephole optimizer
yu.dongliang [Thu, 22 Jun 2023 11:07:45 +0000 (19:07 +0800)]
x64: callee don't save no-used register, align to 16 bytes because libc needs
yu.dongliang [Wed, 21 Jun 2023 17:11:31 +0000 (01:11 +0800)]
fix: x64 call argv register may be overlapped, sometimes like below:
int main()
{
int a[4] = {0, 1, 2, 3};
sort(a, 0, 3);
return 0;
}
yu.dongliang [Fri, 16 Jun 2023 07:19:43 +0000 (15:19 +0800)]
fix: 3ac code for loop
yu.dongliang [Tue, 13 Jun 2023 10:43:13 +0000 (18:43 +0800)]
fix: core dump of 'while (i < 10); ' and 'for(i = 0; i < 1000; i++);'
yu.dongliang [Sat, 10 Jun 2023 08:53:56 +0000 (16:53 +0800)]
fix:
1, const local var print error,
2, break / continue in do while.
yu.dongliang [Thu, 8 Jun 2023 06:14:40 +0000 (14:14 +0800)]
add ../examples/do_while.c
yu.dongliang [Thu, 8 Jun 2023 06:12:47 +0000 (14:12 +0800)]
support 'do {} while ()'
yu.dongliang [Sat, 27 May 2023 15:34:31 +0000 (23:34 +0800)]
move some code to ../lex/scf_lex_util.c
yu.dongliang [Sat, 20 May 2023 15:49:04 +0000 (23:49 +0800)]
support arm32: printf() for double / float test ok.
yu.dongliang [Fri, 19 May 2023 09:11:11 +0000 (17:11 +0800)]
1, 64 bits add, sub, mul, .etc for arm32,
2, use r12 for big disp when memory read / write, to decrease the complexity of register selection.
yu.dongliang [Mon, 15 May 2023 09:51:21 +0000 (17:51 +0800)]
support arm32: 'qsort.c' of 'scf/examples' test ok
yu.dongliang [Sun, 14 May 2023 09:24:15 +0000 (17:24 +0800)]
support arm32: 'hanoi.c' and 'hello.c' of 'scf/examples' test ok
yu.dongliang [Wed, 3 May 2023 07:21:57 +0000 (15:21 +0800)]
make a framework for RISC register selection
yu.dongliang [Sat, 22 Apr 2023 14:25:40 +0000 (22:25 +0800)]
fix: pointer alias BUG
yu.dongliang [Wed, 19 Apr 2023 02:44:47 +0000 (10:44 +0800)]
add usage info
yu.dongliang [Tue, 18 Apr 2023 16:36:51 +0000 (00:36 +0800)]
re-write README.md
yu.dongliang [Tue, 18 Apr 2023 16:19:42 +0000 (00:19 +0800)]
yu.dongliang [Tue, 18 Apr 2023 16:19:06 +0000 (00:19 +0800)]
test
yu.dongliang [Tue, 18 Apr 2023 07:33:41 +0000 (15:33 +0800)]
fix linker can't find libc.so.6 in fedora, and update the main()'s argv parser
yu.dongliang [Mon, 3 Apr 2023 11:46:46 +0000 (19:46 +0800)]
yu.dongliang [Mon, 3 Apr 2023 11:39:01 +0000 (19:39 +0800)]
tmp
yu.dongliang [Fri, 31 Mar 2023 08:19:24 +0000 (16:19 +0800)]
add Naja float instructions
yu.dongliang [Tue, 28 Mar 2023 12:51:46 +0000 (20:51 +0800)]
1, add Naja Virtual Machine for naja bytecode,
2, lexer: support "\033" in string, so printf() can print with color.
yu.dongliang [Sat, 25 Mar 2023 09:39:18 +0000 (17:39 +0800)]
1, make a framework for risc native code generation,
2, add a bytecode generation named 'naja' for script language,
3, move some similar code to scf_elf_native.c in dir elf/ .
yu.dongliang [Fri, 24 Mar 2023 04:41:44 +0000 (12:41 +0800)]
fix: crash in const_teq optimizer when the code like this 'while (1);'
yu.dongliang [Wed, 22 Mar 2023 13:17:14 +0000 (21:17 +0800)]
add ../examples/print.c
yu.dongliang [Wed, 22 Mar 2023 13:16:50 +0000 (21:16 +0800)]
make a framework for RISC instructions in native module
底层技术栈 [Sat, 11 Mar 2023 07:24:45 +0000 (07:24 +0000)]
update README.md.
Signed-off-by: 底层技术栈 <18588496441@163.com>
底层技术栈 [Sat, 11 Mar 2023 07:20:03 +0000 (07:20 +0000)]
update README.md.
Signed-off-by: 底层技术栈 <18588496441@163.com>
底层技术栈 [Sat, 11 Mar 2023 07:19:16 +0000 (07:19 +0000)]
update README.md.
Signed-off-by: 底层技术栈 <18588496441@163.com>
yu.dongliang [Thu, 2 Mar 2023 06:47:54 +0000 (14:47 +0800)]
support ARM64: float / double args for function call
yu.dongliang [Wed, 1 Mar 2023 12:26:56 +0000 (20:26 +0800)]
support ARM64: float / double instructions
yu.dongliang [Sat, 25 Feb 2023 05:03:58 +0000 (13:03 +0800)]
support arm64: 'qsort' test ok in ../examples/qsort.c
yu.dongliang [Tue, 21 Feb 2023 11:10:23 +0000 (19:10 +0800)]
support arm64: 'hanoi' test ok, ../examples/hanoi.c
yu.dongliang [Sat, 18 Feb 2023 05:26:16 +0000 (13:26 +0800)]
support arm64: 'hello world' test ok, ../examples/hello.c
yu.dongliang [Fri, 10 Feb 2023 08:00:25 +0000 (16:00 +0800)]
fix issue #I6E9GC: return error when use 4 values in multi-return-values function.
yu.dongliang [Fri, 10 Feb 2023 04:08:09 +0000 (12:08 +0800)]
add ../examples/multi_retvals.c
yu.dongliang [Fri, 10 Feb 2023 04:01:59 +0000 (12:01 +0800)]
fix issue #I6E6LZ: scf crash when analysize multi-return-values function.
yu.dongliang [Wed, 11 Jan 2023 11:37:48 +0000 (19:37 +0800)]
add ../examples/hanoi.c
yu.dongliang [Sat, 31 Dec 2022 16:16:50 +0000 (00:16 +0800)]
fix issue '#I685FL': use interpreter '/lib64/ld-linux-x86-64.so.2'
yu.dongliang [Tue, 13 Dec 2022 09:54:57 +0000 (17:54 +0800)]
fix: debug info error of class member function
yu.dongliang [Tue, 13 Dec 2022 06:46:34 +0000 (14:46 +0800)]
1, delete some unused code,
2, print usage when start scf,
3, mov test code to dir examples.
yu.dongliang [Sat, 5 Nov 2022 07:50:11 +0000 (15:50 +0800)]
test email
yu.dongliang [Thu, 20 Oct 2022 09:59:07 +0000 (17:59 +0800)]
DAG optimize basic block for pointer dereference
yu.dongliang [Thu, 20 Oct 2022 08:20:41 +0000 (16:20 +0800)]
fix: core dump when '(*p)++'
底层技术栈 [Wed, 19 Oct 2022 10:26:45 +0000 (10:26 +0000)]
update README.md.
Signed-off-by: 底层技术栈 <maja_creater@qq.com>
底层技术栈 [Wed, 19 Oct 2022 10:26:12 +0000 (10:26 +0000)]
update README.md.
Signed-off-by: 底层技术栈 <maja_creater@qq.com>
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.
yu.dongliang [Tue, 18 Oct 2022 15:03:47 +0000 (23:03 +0800)]
fix & optimize: pointer dereference in if condition
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;
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)
底层技术栈 [Sat, 15 Oct 2022 08:38:05 +0000 (08:38 +0000)]
update README.md.
Signed-off-by: 底层技术栈 <maja_creater@qq.com>
底层技术栈 [Sat, 15 Oct 2022 08:34:43 +0000 (08:34 +0000)]
update README.md.
Signed-off-by: 底层技术栈 <maja_creater@qq.com>
底层技术栈 [Sat, 15 Oct 2022 08:06:52 +0000 (08:06 +0000)]
update README.md.
Signed-off-by: 底层技术栈 <maja_creater@qq.com>
yu.dongliang [Sat, 15 Oct 2022 07:56:03 +0000 (15:56 +0800)]
rename executable file name to scf
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 ||
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.
底层技术栈 [Tue, 5 Jul 2022 09:18:44 +0000 (09:18 +0000)]
Initial commit