[Vm-dev] Re: [squeak-dev] VM 4.4 build nastinesses - part 1 of probably many

tim Rowledge tim at rowledge.org
Tue Feb 12 19:48:42 UTC 2013


OK, reposted her eas Eliot suggested- 
On 11-02-2013, at 8:42 PM, Eliot Miranda <eliot.miranda at gmail.com> wrote:

> Tim, ask again on vm-dev.  This is all VM stuff.
> 
> On Mon, Feb 11, 2013 at 5:53 PM, tim Rowledge <tim at rowledge.org> wrote:
> Can anyone (Bert?) provide the intended effect and limits of ioSetCursorARGB() ? This is a new one on me and the implementations I see in the SVN tree mean very little.
> 
> Can anyone explain why totally inappropriate and highly OS dependant code like push/popOutputFile() are in CROSS/sqVirtualMachine.c? The definition of stdin/out/err is not a safe one to assume everywhere. Not every OS trivially maps a FILE* to a number.
> 
> It looks like the primitiveFunctionPointer global got changed fro mvoid* in 4.0 to void(*)() in 4.4. This is a good thing *if* the matching usages are correctly modified; which they aren't. For example in primitiveExecuteMethodArgsArray(). On my compiler that is a fatal error - as it should be. Is anyone currently fixing that or shall I? Possibly as a side effect primitiveFunctionPointer is no longer in the global struct, which may well adversely impact performance.

Working on the third item since it is if nothing else a good excuse to trawl through a lot of code and remind myself of what is where and just how much still needs cleaning. I suspect I'll find a lot of it sorted out in the stack/cog code anyway but I guess the exercise is good for me. 

I never knew that you could declare an argument in C with "sqInt (*thingy[])(void)" ! I hope it actually does what i think it oughta.

tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Useful random insult:- Pedaling real fast, but not getting anywhere.




More information about the Vm-dev mailing list