This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Porting binutils to new platform


On Wednesday 26 May 2004 14:45, Chris Smith wrote:
> I'm trying to get binutils working for a calculator.
>
> The calculator uses an ARM processor... but typically uses it to emulate
> the assembly language of a now-defunct proprietary processor.  Recently,
> it's been discovered that it's possible to call ARM machine code by placing
> the machine code into a string constant and then doing some fancy stuff
> with the emulated assembly to cause the processor to jump to the address of
> the string constant. I'd like to define a target file format which takes
> ARM assembly and creates just such a file -- with machine code stuffed into
> a string constant and the basic Saturn machine code header to cause the
> processor to run the ARM code.

It may be quicker and easier to use the existing arm-elf target (probably with 
a custom linker script), then "objcopy -O binary" and a quick script to 
generate your assembly wrapper.

Paul


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]