[ProgClub list] Memory management in C

Asher Glynn asher.glynn at gmail.com
Sun Oct 2 06:50:36 AEDT 2011


> Which I don't entirely understand. It seems to be saying that the first
>>> four parameters are passed in particular registers (depending on their
>>> size
>>> and type). Does this mean 'always'? Do all compilers have to know about
>>> this
>>> and generate code accordingly?
>>>
>>
>> They'll have to know about it if they want to be compatible with each
>> other.
>> One of the exercises (before I dropped it) in Operating Systems at UNSW
>> was
>> rewriting an RPC mechanism in a microkernel to pass on register rather
>> than
>> in main memory.
>>
>
> I don't understand how it's "RPC" if the parameters are being passed in
> registers!
>
> RPC in this case was "remote" in the sense of "not in process". The
particular microkernel was MACH I think.


> I guess what you were doing was changing from "RPC" to in-proc. Presumably
> for performance reasons.
>

Not modifying to in-proc. But definitely for performance reasons.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.progclub.org/pipermail/list/attachments/20111001/3b0f3d01/attachment.html>


More information about the list mailing list