<br><font size=2><tt>Jeremy Kerr wrote:</tt></font>
<br>
<br><font size=2><tt>> A couple of questions:<br>
> <br>
> * do I need to to do anything extra to make crt0 do the setup
<br>
> correctly?</tt></font>
<br>
<br><font size=2><tt>Link with -mstd-main.</tt></font>
<br><font size=2><tt><br>
> * why does it need to be done in crt0 (hence causing an extra
DMA) <br>
> anyway? This could done in libspe instead, where we set up the original
<br>
> registers. We'd just need to copy the argv region to the top of local
<br>
> store, and offset the stack pointer appropriately.</tt></font>
<br>
<br><font size=2><tt>For a long time, crt0 would ignore the incoming stack
pointer</tt></font>
<br><font size=2><tt>and always reset $1 to the top of local store.</tt></font>
<br>
<br><font size=2><tt>Also, when we discussed this, it was considered more
efficient</tt></font>
<br><font size=2><tt>to copy the arguments in via DMA.</tt></font>
<br>
<br><font size=2 face="sans-serif"><br>
Mit freundlichen Gruessen / Best Regards<br>
<br>
Ulrich Weigand<br>
<br>
-- <br>
Dr. Ulrich Weigand | Phone: +49-7031/16-3727<br>
GNU compiler/toolchain for Linux on System z and Cell BE<br>
IBM Deutschland Entwicklung GmbH<br>
Vorsitzender des Aufsichtsrats: Martin Jetter | Geschäftsführung:
Herbert Kircher<br>
Sitz der Gesellschaft: Böblingen | Registergericht: Amtsgericht
Stuttgart, HRB 24329</font><font size=2><tt><br>
</tt></font>