Issues with gcc -S output format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello. I am designing a MIPS processor in VHDL as part of a class, and
I would like to compile and run several programs on this processor in
order to test them.

I can successfully compile the programs and convert them into a raw
binary format for use with the processor I designed, but I now need to
also run the programs on the MARS simulator in order to check the
accuracy of my processor implementation.  The MARS simulator will only
accept assembly source code as input (and not raw binary or object
files), so I tried using -S to produce the assembly code for the
programs. The problem is that MARS does not understand macros such as
%lo and %hi (although it does have basic support for directives), so
the code won't run. I also tried using objdump to disassemble the
object file, but it inserts a bunch of extra junk such as instruction
addresses.

How can I get the raw assembly code in a simple format (that MARS can parse)?

Thanks,
Kerrick Staley



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux