VC++ 2005 Express can produce the assembly code for you but it won't produce assembly code for the standard c and c++ library functions that your program calls. Unless your teacher lets you link with standard C or C++ libraries, which I doubt, you wil have to write those functions yourself.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
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
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
>>is the assembly code outputted MIPS
No. Its Intell 80X88, you will have to translate it to MIPS.
You can get free eVC++ 4.0 which is for embedded WinCE and PocketPC devices which can produe MIPS assembly. Depending on your program that compiler may or may not be able to compile it.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
If your assignment was to do it in a high level language then why play with assembly?
The fastest way to convert would be to tell the compiler to produces assembly source instead of a binary image. If you are using the GCC:
g++ -S -fverbose-asm foo.cpp
Other compilers will vary.
BTW. Good luck. C++ is pretty darn high level.
Duoas
Postaholic
2,043 posts since Oct 2007
Reputation Points: 1,140
Solved Threads: 229
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
Apart from hijacking a dead thread, what's your question?
Find a compiler which targets the ASM you want, and follow the instructions earlier in the thread.
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953