Hi Everyone,
Can someone help me and give some guidance, on how to convert C code to DLX assembly code? I have been trying to find some tool, whatever I find converts from C to MIPS assembly code.
Thanks.
Hi Everyone,
Can someone help me and give some guidance, on how to convert C code to DLX assembly code? I have been trying to find some tool, whatever I find converts from C to MIPS assembly code.
Thanks.
Most compilers have an option to output assembly (under GCC, I think the command switch is "-S").
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
Depends on the compiler and the host environment. As noted the "-S" option will do the trick on a resident compiler if the host is a MIPS machine, else you need a cross compiler.