PDA

View Full Version : حرفه ای: تبدیل کد ++C به اسمبلی MIPS



13601360
شنبه 23 مهر 1390, 21:09 عصر
سلام دوستان
شما راه سراغ دارید یک شبه کد ++C رو به کد معادل اسمبلی MIPS تبدیل کنیم

xman_1365_x
یک شنبه 24 مهر 1390, 01:09 صبح
windows
eMbedded Visual C++ 4.0
http://www.microsoft.com/download/en/details.aspx?id=24809
linux
The GNU C++ compiler
http://gcc.gnu.org/install/specific.html
http://gcc.gnu.org/
g++ -S -fverbose-asm foo.cpp

xman_1365_x
یک شنبه 24 مهر 1390, 01:13 صبح
gcc for windows
Cygwin (http://sourceware.org/cygwin/)

MinGW (http://www.mingw.org/)

xman_1365_x
یک شنبه 24 مهر 1390, 02:27 صبح
از MSVC هم میتونید استفاده کنید
برای خروجی اسمبلی
Project --> Properties (the last item in the menu) --> Configuration Properties --> C/C++ -> Output Files --> then on the right side of the screen you will see Assembly Output
برای کامپایل
linker->advanced ->target machine
و این هم دوتا لینک دیگه
http://stackoverflow.com/questions/1604580/convert-c-to-mips-assembly-language
http://ubuntuforums.org/showthread.php?t=587595
موفق باشی