[Vm-dev] Howto invoke plugin primitive from Interpreter?
John M McIntosh
johnmci at smalltalkconsulting.com
Thu Jun 14 16:21:28 UTC 2007
Well as already noted I've code that does what you want if you want
to do it in the vm.
look on my idisk, or ftp site (I think) in the experimental folder,
then the MessageLoggingVM folder.
David T Lewis also gave me code to enable the use of SIGNALS via
OSProcess plugin to let you use the unix signal
logic to turn on/off tracing and modify what it was doing.
On Jun 14, 2007, at 9:06 AM, André Wendt wrote:
> Bert Freudenberg schrieb:
>> On Jun 14, 2007, at 16:08 , André Wendt wrote:
>>> Bert Freudenberg schrieb:
>>>> On Jun 14, 2007, at 14:31 , André Wendt wrote:
>>>>> That means I have to open a file upon initialization and write the
>>>>> at each send. There's no other way than to do that in the
>>>>> as far as I can see.
>>>> What about fopen()?
>>> Do you mean something like
>>> f := self cCode: 'fopen(logFile, "a")'. ??
> I could do that (and it works), but only until I encounter the
> corresponding fwrite() call. Something along the lines of
> self cCode: 'fwrite("asdf", 4, 1, self sendProfile)'.
> of course won't work, and then I'd still have to somehow mix my
> variables into the C code. That's where it starts getting nasty again.
> Any suggestions?
John M. McIntosh <johnmci at smalltalkconsulting.com>
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
More information about the Vm-dev