issues
search
jserv
/
rv32jit
JIT-accelerated RISC-V instruction set simulator
MIT License
30
stars
7
forks
source link
Replace alloca with std::vector
#10
Closed
EagleTw
closed
10 months ago
EagleTw
commented
10 months ago
The reason as follows:
The alloca() function is machine- and compiler-dependent. We should use machine independent container instead.
The alloca() function has stack overflow potentail. If the allocation causes stack overflow, program behavior is undefined.
The reason as follows: