Right but if I write a program that converts code into assembly and does the optimizations automatically then I can get something better or equal to a compiler.
Isn't that exactly a compiler?
Yes. And all of my statements are 100% correct except for this one.