anthropics / anthropics/claudes-c-compiler
bug(assembler,inc): with a number and with a rax
- Lenguaje dominante
- Rust
- Estrellas
- 2.8k
- Forks
- 247
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
a bug on the assembler, example if you provide
```c
#include
#include
int main(int argc, char* argv[])
{
__asm__("inc 7");
}
```
it compiles without errors then it result on SIGSEGV
and if you provide
```c
#include
#include
int main(int argc, char* argv[])
{
__asm__("inc rax");
}
```
it says
```rust
relunsec@relunsec:~/software/claudes-c-compiler/target/debug$ ./ccc a.c -o a
ccc: error: unsupported unary operand
```
# Recommendation
Use LLVM Integrated assembler like GCC does, it is audited, and implementing **ASM** from scratch, it take decades to be working, All compilers including **GCC** and **CLANG** and even **RUSTC** by itself use the llvm integrated assembler, Because audited of decades.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.