我测试了,这个编译器本身只要38秒就编译出来了,在我的Ubuntu虚拟机里。
happy@Ubuntu:~$ git clone git@github.com:anthropics/claudes-c-compiler
Cloning into 'claudes-c-compiler'...
remote: Enumerating objects: 30912, done.
remote: Total 30912 (delta 0), reused 0 (delta 0), pack-reused 30912 (from 1)
Receiving objects: 100% (30912/30912), 11.51 MiB | 3.67 MiB/s, done.
Resolving deltas: 100% (20199/20199), done.
happy@Ubuntu:~$ cd claudes-c-compiler/
happy@Ubuntu:~/claudes-c-compiler$ dir
BUILDING_LINUX.txt Cargo.toml DESIGN_DOC.md LICENSE README.md current_tasks ideas include projects src
happy@Ubuntu:~/claudes-c-compiler$ cargo build --release
Compiling ccc v0.1.0 (/home/happy/claudes-c-compiler)
Finished `release` profile [optimized] target(s) in 37.89s
happy@Ubuntu:~/claudes-c-compiler$ cat > hello.c << 'EOF'
#include <stdio.h>
int main(void) {
printf("Hello from CCC!\n");
return 0;
}
EOF
happy@Ubuntu:~/claudes-c-compiler$ ./target/release/ccc -o hello hello.c
happy@Ubuntu:~/claudes-c-compiler$ ./hello
Hello from CCC!
happy@Ubuntu:~/claudes-c-compiler$
--
FROM 61.51.229.*