This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


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

Re: Changing register for passing return value from function call


On Mon, 8 Feb 1999 07:13:48 -0600 (CST), joel@OARcorp.com wrote:

>On Thu, 4 Feb 1999, Arjan Koers wrote:
>
>> Some compiler directive to use %a0 that can be placed at the function
>> delaration and at the function calls would be nice.
>
>IMO it would be much easier to write a small assembly function that moved
>the value returned from a0 to d0 than to fiddle with gcc. 

Yes, that's the way I've implemented it at the moment. However,
because I'm not the only one that's going to use GCC this way, I would
prefer a method that's without assembly.

Arjan Koers.
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.