Re: Issues with gcc -S output format

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

 



Kerrick Staley <mail@xxxxxxxxxxxxxxxxx> writes:

> 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)?

I suppose you could try -mno-explicit-relocs.  I would not be at all
surprised if it no longer works, though, as I doubt anybody tests it.

Ian



[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