On 26 Jul 2010, at 8:27, Tassilo Philipp wrote:

Hi,

I'm in the process of porting dyncall (http://dyncall.org) to Plan9, and I was wondering if there are any documents about the calling convention used by Plan9 - specifically for x86, for starters. I was unable to find any at
the time of writing, and well, hoped that it would be similar to the
SystemV calling convention(s) used by the *BSDs or Linux, etc., but that
doesn't seem to be the case.
The only information I found so far, is, that most of the compiled Plan9
functions don't seem to have any prologue/epilogue, however, this
assumption might be wrong (maybe I didn't get how Plan9 works on the
machine-level, so far).

I hope you don't mind me asking, but what do the prologue and epilogue normally do? With only a basic knowledge of C and assembler, I can't imagine what they might be for. Are they anything to do with dynamic linking?


I'm still new to Plan9, but it's quite mind-opening to discover certain aspects of the OS - especially after getting so (too) used to Unix/ Windows
OS design decisions and accepting them as the normal/right way to do
things...

Oh tell me about it, I'm finding


Thanks,
Tassilo




Reply via email to