> I'm not sure it is the right place to ask these questions, are they are 
> relative to the way GCC generate/use ASM code.

  i am on vacation.. but.. what the hell :)

> If it is not, sorry for the inconvenience...
> 
> 1) I would like to know which registers are assumed to be modified between 
> function calls and which in fact did not need to be saved.
> By looking at the generated code, it seems than D0, D1 and D2 does not need 
> to be saved if we use them in some inline ASM code.

  dont make any assumptions :) it probably doesn't hurt to push em
  all, and pop em all when you are done.. :) the optimizer may do some
  fancy stuff :)

> 2) Is there any way to ask the compiler to use registers for passing 
> arguments instead of using the stack ?

  sure.. write the call yourself, put in some inline assembler,
  pass pointers into registers, and do a jsr :) chances are tho,
  your routine that you will call will probably need to be written in 
  ASM too - so your assumptions are set.
  
> 3) How may I force GCC to generate a mulu instruction, instead of muls ?

  dunno.. either do it inline, or accept it :)

> 4) Is there any ressource, around, which explain the kind of informations I'm 
> looking for ?

  general gcc assembler info - heaps of it available, see Cube3D/Burning
  for samples of inline assembly using gcc.. where possible, and i see
  benefits.. i use it all the time

// az
[EMAIL PROTECTED]
http://www.ardiri.com/    <--- free games!


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to