Hi,
I may need explain this problem more clearly.For a backend which runs as
coprocessor to a host processor, such as GPU, which incoporates large
numbers of ALUS and processes only arithmetic operations and some other
simple operations, runs in VLIW pattern to accelerate the host
processor. Say, this coprocessor is referred as 'raw processor', note, I
don't mention GPU, GPU is similar in mechnism but more complex than
this. It owns simple ISA, and has no dedicated ESP, EBP to support
function call, It fetches the VLIW instruction from instruction memory
one by one,
and execute it. If I want to let GCC produce assembly for it, how should
I code the machine description file? Should I first let cc1 produce a
elf assembly for it, and then let binutils trunate it to a flat
assembly? It seems ugly hacking. Thanks.

Regards,
Li Wang
> Li Wang wrote:
>   
>> Hi,
>> I wonder how to let GCC produce flat assembly, say, just like the .com
>> file under the DOS, without function calls and complicate executable
>> file headers, only instructions. How to modify the machine description
>> file to achieve that? Thanks in advance.
>>     
>
> Perhaps you are asking on the wrong list.
>
> And what exactly do you want to achieve and why?
>
> What is your target system?
>
> Why using (and appropriately configuring) the binutils (in particular
> its linker, ld, implicitly invoked by gcc) not appropriate for your
> needs? I am sure that you can configure it appropriately (binutils is
> very powerful).
>
> You still will need other generated data than the instructions.
> Typically, constants such as strings. And many other stuff.
>
>
>   

Reply via email to