Declutter

This commit is contained in:
2026-01-31 21:34:56 -05:00
parent 409c5938f9
commit cb13f09ae5
9 changed files with 2 additions and 142 deletions

2
.gitignore vendored
View File

@@ -8,3 +8,5 @@ DerivedData/
.netrc
run
bin/
*.out
*.s

BIN
a.out

Binary file not shown.

BIN
gcc.out

Binary file not shown.

3
hard.c
View File

@@ -1,3 +0,0 @@
int main() {
return !(2 * 3) + !2 * 3 + (4 + 5) * ~6 * 7 * (8 + -(!~9 * 10)) - -11 * ~12 + !~-13;
}

24
hard.s
View File

@@ -1,24 +0,0 @@
.globl main
main:
cmpl $0, %eax
movl $0, %eax
sete %al
movl $2, %eax
cmpl $0, %eax
movl $0, %eax
sete %al
movl $3, %eax
movl $6, %eax
not %eax
movl $7, %eax
movl $11, %eax
neg %eax
movl $12, %eax
not %eax
movl $13, %eax
neg %eax
not %eax
cmpl $0, %eax
movl $0, %eax
sete %al
ret

BIN
my.out

Binary file not shown.

BIN
rxcc.out

Binary file not shown.

111
test.s
View File

@@ -1,111 +0,0 @@
.globl main
main:
movl $4, %eax
push %eax
movl $4, %eax
neg %eax
pop %ecx
addl %ecx, %eax
cmpl $0, %eax
movl $0, %eax
sete %al
push %eax
movl $6, %eax
push %eax
movl $2, %eax
push %eax
movl $2, %eax
pop %ecx
addl %ecx, %eax
movl %eax, %ecx
pop %eax
cdq
idivl %ecx
push %eax
movl $4, %eax
neg %eax
pop %ecx
imul %ecx, %eax
push %eax
movl $4, %eax
not %eax
pop %ecx
imul %ecx, %eax
push %eax
movl $9, %eax
movl %eax, %ecx
pop %eax
cdq
idivl %ecx
pop %ecx
addl %ecx, %eax
push %eax
movl $4, %eax
push %eax
movl $5, %eax
push %eax
movl $32, %eax
push %eax
movl $2, %eax
movl %eax, %ecx
pop %eax
cdq
idivl %ecx
pop %ecx
imul %ecx, %eax
push %eax
movl $1, %eax
not %eax
pop %ecx
addl %ecx, %eax
movl %eax, %ecx
pop %eax
cdq
idivl %ecx
push %eax
movl $400, %eax
push %eax
movl $90, %eax
movl %eax, %ecx
pop %eax
cdq
idivl %ecx
push %eax
movl $1, %eax
pop %ecx
addl %ecx, %eax
pop %ecx
subl %eax, %ecx
movl %ecx, %eax
push %eax
movl $5, %eax
push %eax
movl $4, %eax
movl %eax, %ecx
pop %eax
cdq
idivl %ecx
push %eax
movl $2, %eax
push %eax
movl $3, %eax
pop %ecx
addl %ecx, %eax
pop %ecx
imul %ecx, %eax
push %eax
movl $9, %eax
neg %eax
movl %eax, %ecx
pop %eax
cdq
idivl %ecx
not %eax
neg %eax
pop %ecx
subl %eax, %ecx
movl %ecx, %eax
neg %eax
pop %ecx
addl %ecx, %eax
ret

View File

@@ -1,4 +0,0 @@
int main() {
return -(2 * 3) * 5 * (2 * 5) * (3 * -4 * -(-2 * 5) * 4) * -7 * 7;
}