February 26, 2007

Bill Baxter wrote:
> Daniel Keep wrote:
>>
>> I'm certainly no expert but from what I do know, the container the code is kept in is largely irrelevant.  All that really matters is that it's for the right CPU (hopefully the one you're using) and that a few other things are done the same way (like exceptions).
>>
>> I think it's kind of like the difference between a text file stored in an archive.  Whether you use ZIP, RAR or 7z is beside the point: it's more important that the text file is in a language you understand :P
> 
> Where do calling conventions fit into that picture?  Doesn't it vary from platform to platform which of caller or callee pushes and pops arguments, or if some number of them are passed by registers instead of stack?
> 
> --bb

Those are the sentence structure :P

Again, that's an issue with the generated code and it's also something
that would be *theoretically* possible to shim (like having an extern(C)
function that then calls your C++ functions).

	-- Daniel

-- 
Unlike Knuth, I have neither proven or tried the above; it may not even make sense.

v2sw5+8Yhw5ln4+5pr6OFPma8u6+7Lw4Tm6+7l6+7D i28a2Xs3MSr2e4/6+7t4TNSMb6HTOp5en5g6RAHCP  http://hackerkey.com/
February 26, 2007
On Mon, 26 Feb 2007 10:42:13 +1100, Daniel Keep wrote:

> I'm certainly no expert but from what I do know, the container the code is kept in is largely irrelevant.  All that really matters is that it's for the right CPU (hopefully the one you're using) and that a few other things are done the same way (like exceptions).
> 
> I think it's kind of like the difference between a text file stored in an archive.  Whether you use ZIP, RAR or 7z is beside the point: it's more important that the text file is in a language you understand :P
> 
> Finally, I believe the mention of OS-independent libraries was referring
> to the possibility of writing shims that, providing the code was for the
> right CPU, would resolve the other differences like exception handling.
>  But then, I could be wrong :P
> 
> 	-- Daniel
>


Yes, well, one still needs the software to unzip the archives. :P

Following this analogy, windows doesn't have this for elf executables.

-JJR
1 2 3 4 5 6 7 8
Next ›   Last »