Google 网上论坛不再支持新的 Usenet 帖子或订阅项。历史内容仍可供查看。

[CVS ci] PCC 1-3

已查看 8 次
跳至第一个未读帖子

Leopold Toetsch

未读,
2003年7月29日 14:16:062003/7/29
收件人 P6I
Parrot now has basic PCC (Parrot Calling Convention) support inside the
PIR assembler.
1) no fancy stuff like register renumbering
2) only the upper half of all registers are preserved currently

TODO:
- tests
- more tests
- docs
- still more tests
- optimize register usage
- tail call optimizations
- check which registers have to be preserved over sub calls
- preserve only necessary register sets
- allocate regs that have not to be preserved in the lower half of regs
- if too many regs have to be preserved then emit saveall/restoreall
including save/restore return values around restoreall.

Register allocation now starts at #16 for each set, giving 16 preserved
registers for sub calls. That should be enough for first tests.

SYNOPSIS:
s. languages/imcc/docs/calling_conventions.pod

Have fun,
leo

0 个新帖子