tyfkda / xcc

Standalone C compiler/assembler/linker/libc for x86-64/aarch64/riscv64/wasm
https://tyfkda.github.io/xcc/
MIT License
198 stars 14 forks source link

Speed up detect_living_registers #94

Closed tyfkda closed 2 years ago

tyfkda commented 2 years ago

Hi @mingodad , I make a pull request to speed up detect_living_registers function.

This change makes compile time of exprtk.c about 30 seconds.

88

mingodad commented 2 years ago

It's a big win in speed compared to before and now the output it's the same as gcc for xcc but wcc output is not matching.

./exprtk-xcc
7364    7285
./exprtk-gcc
7364    7285
#wcc online
7364    6892
tyfkda commented 2 years ago

I am going to merge this.