28 Apr 04:48
Re: idc for windows platform
From: Aaron Gray <aaronngray.lists@...>
Subject: Re: idc for windows platform
Newsgroups: gmane.comp.lang.smalltalk.fonc
Date: 2008-04-28 02:48:24 GMT
Subject: Re: idc for windows platform
Newsgroups: gmane.comp.lang.smalltalk.fonc
Date: 2008-04-28 02:48:24 GMT
On Mon, Apr 28, 2008 at 2:55 AM, Aaron Gray <aaronngray.lists-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:
On Mon, Apr 28, 2008 at 2:48 AM, Michael FIG <michael-y8U0i/lyZOM@public.gmane.org> wrote:Hi,This changes the calling convention... the "ap" argument does not pass
"Aaron Gray" <aaronngray.lists-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> writes:
> va_start( ap, rcv);
> _c = (struct __closure *) _libid->bind( msg, _r);
> ret = (_c->method)( (oop) _c, _r, _r, ap);
> va_end( ap);
the remaining arguments on the stack, it passes a pointer to them, so
they wouldn't be usable as named parameters.
Ah, should have noticed that :)Oh, well have to use preprocessor then :(
Just as well, the code generation is crap, and it does not get inlined either, vaargs and inlining do not mix on VS 2008. Shame as I wanted to use it to pass tuples :(
Aaron
<div> <br><br><div class="gmail_quote">On Mon, Apr 28, 2008 at 2:55 AM, Aaron Gray <<a href="mailto:aaronngray.lists@...">aaronngray.lists@...</a>> wrote:<br><blockquote class="gmail_quote"> <div class="gmail_quote"> <div class="Ih2E3d">On Mon, Apr 28, 2008 at 2:48 AM, Michael FIG <<a href="mailto:michael@..." target="_blank">michael@...</a>> wrote:<br><blockquote class="gmail_quote">Hi,<br><div> <br>"Aaron Gray" <<a href="mailto:aaronngray.lists@..." target="_blank">aaronngray.lists@...</a>> writes:<br><br>> va_start( ap, rcv);<br>> _c = (struct __closure *) _libid->bind( msg, _r);<br> > ret = (_c->method)( (oop) _c, _r, _r, ap);<br>> va_end( ap);<br><br> </div>This changes the calling convention... the "ap" argument does not pass<br>the remaining arguments on the stack, it passes a pointer to them, so<br> they wouldn't be usable as named parameters.<br> </blockquote> </div> <div>Ah, should have noticed that :)</div> <div> </div> <div>Oh, well have to use preprocessor then :(</div> </div> </blockquote> <div> </div> <div>Just as well, the code generation is crap, and it does not get inlined either, vaargs and inlining do not mix on VS 2008. Shame as I wanted to use it to pass tuples :(</div> <div> </div> <div>Aaron</div> <div> </div> </div> </div>
RSS Feed