9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] dyncall on Plan9
@ 2010-09-25 21:04 Tassilo Philipp
       [not found] ` <2B81AE33-6D6D-4B38-8B4B-F34B6ED4D6A4@ar.aichi-u.ac.jp>
  2010-09-28  6:29 ` Sergey Zhilkin
  0 siblings, 2 replies; 4+ messages in thread
From: Tassilo Philipp @ 2010-09-25 21:04 UTC (permalink / raw)
  To: 9fans

Hi,

I finished my dyncall/Plan9/x86 port - thanks again Cinap and Steve for
pointing me into the right directions about the Plan9 calling convention,
a few weeks ago.

Anyways, dyncall has Plan9 support for x86, starting with Version 0.6,
maybe someone likes it or finds it useful (www.dyncall.org).

Cheers,
Tassilo




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] dyncall on Plan9
       [not found] ` <2B81AE33-6D6D-4B38-8B4B-F34B6ED4D6A4@ar.aichi-u.ac.jp>
@ 2010-09-27 16:02   ` Tassilo Philipp
  0 siblings, 0 replies; 4+ messages in thread
From: Tassilo Philipp @ 2010-09-27 16:02 UTC (permalink / raw)
  To: 9fans, Kenji Arisawa

Hi,

thanks for the feedback. You are right about the error... However, at the
moment, I don't have callback support on Plan9, so this is an ugly detail
that I try to build it unsuccessfully, but it doesn't block you from using
dyncall which seems to build fine on your machine.

I'm sorry for this inconvenience, please change a line in dyncall/mkfile
from:

DIRS  = dyncall dyncallback dynload

to:

DIRS  = dyncall

to get rid of this error (and yes, there is no dynload support, either, at
the time of writing). I hope to get dyncallback support in for 0.7...
well, I shouldn't have forgotten to change the line mentioned above... oh
well ;)

You can svn checkout the latest version, which includes the fix.

Thanks,
Tassilo



> Hello Tassilo,
>
> I tried to compile your dyncall (latest version) for plan9.
> The result ended with error. Probably you miss mkfile in dyncallback.
>
> Thanks in advance.
>
> Kenji Arisawa
>
> io% mk
> Handling sub-directory dyncall...
> libdyncall_s.a8 doesn't exist: assuming it will be an archive
> pcc -D__Plan9__ -D__386__ -I../dyncall -I../dyncallback -c
> dyncall_vector.c
> pcc -D__Plan9__ -D__386__ -I../dyncall -I../dyncallback -c dyncall_api.c
> pcc -D__Plan9__ -D__386__ -I../dyncall -I../dyncallback -c dyncall_callf.c
> cp dyncall_call.S dyncall_call.S.c
> pcc -E -D__Plan9__ -D__386__ dyncall_call.S.c > dyncall_call.s # replace
> with cpp? pcc requires .c suffix
> rm dyncall_call.S.c
> 8a  dyncall_call.s
> rm dyncall_call.s
> pcc -D__Plan9__ -D__386__ -I../dyncall -I../dyncallback -c
> dyncall_callvm.c
> /usr/arisawa/src/dyncall-0.6/dyncall/./dyncall_callvm_x86.c:152[stdin:1051]
> function args not checked: dcCall_x86_plan9_ll
> pcc -D__Plan9__ -D__386__ -I../dyncall -I../dyncallback -c
> dyncall_callvm_base.c
> ar vu libdyncall_s.a8 dyncall_vector.8 dyncall_api.8 dyncall_callf.8
> dyncall_call.8 dyncall_callvm.8 dyncall_callvm_base.8
> ar: creating libdyncall_s.a8
> a - dyncall_vector.8
> a - dyncall_api.8
> a - dyncall_callf.8
> a - dyncall_call.8
> a - dyncall_callvm.8
> a - dyncall_callvm_base.8
> Handling sub-directory dyncallback...
> mkfile: 'mkfile' file does not exist
> mk: for (i in ...  : exit status=rc 280: rc 333: mk 336: error
> io%
>
> On 2010/09/26, at 6:04, Tassilo Philipp wrote:
>
>> Hi,
>>
>> I finished my dyncall/Plan9/x86 port - thanks again Cinap and Steve for
>> pointing me into the right directions about the Plan9 calling
>> convention,
>> a few weeks ago.
>>
>> Anyways, dyncall has Plan9 support for x86, starting with Version 0.6,
>> maybe someone likes it or finds it useful (www.dyncall.org).
>>
>> Cheers,
>> Tassilo
>>
>>
>
>
>




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] dyncall on Plan9
  2010-09-25 21:04 [9fans] dyncall on Plan9 Tassilo Philipp
       [not found] ` <2B81AE33-6D6D-4B38-8B4B-F34B6ED4D6A4@ar.aichi-u.ac.jp>
@ 2010-09-28  6:29 ` Sergey Zhilkin
  2010-09-28 13:54   ` Tassilo Philipp
  1 sibling, 1 reply; 4+ messages in thread
From: Sergey Zhilkin @ 2010-09-28  6:29 UTC (permalink / raw)
  To: tphilipp, Fans of the OS Plan 9 from Bell Labs

Hi !

One question - why ?

http://harmful.cat-v.org/software/dynamic-linking/

On Sun, Sep 26, 2010 at 1:04 AM, Tassilo Philipp
<tphilipp@potion-studios.com> wrote:
> Hi,
>
> I finished my dyncall/Plan9/x86 port - thanks again Cinap and Steve for
> pointing me into the right directions about the Plan9 calling convention,
> a few weeks ago.
>
> Anyways, dyncall has Plan9 support for x86, starting with Version 0.6,
> maybe someone likes it or finds it useful (www.dyncall.org).
>
> Cheers,
> Tassilo
>
>
>



-- 
С наилучшими пожеланиями
Жилкин Сергей
With best regards
Zhilkin Sergey



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] dyncall on Plan9
  2010-09-28  6:29 ` Sergey Zhilkin
@ 2010-09-28 13:54   ` Tassilo Philipp
  0 siblings, 0 replies; 4+ messages in thread
From: Tassilo Philipp @ 2010-09-28 13:54 UTC (permalink / raw)
  To: 9fans, Sergey Zhilkin

Well, there is numerous reasons ranging from very simple (ever tried to
wrap a vararg func?), to complex (dynamic message systems, virtual
machines, script language implementations/bindings, interpreters, etc.).

The library can be useful without having support for dynamically linked
libraries on the target platform - I guess we don't even have to argue
about the fact, that "dynamic libraries" aren't the best thing the world
has seen...
The point of dyncall is not "load a dll/so and call a function", but to
allow you to do something you simply can't in C.

For me, the Plan9 port was mainly instructional, and who knows, maybe
someone finds it useful...



> Hi !
>
> One question - why ?
>
> http://harmful.cat-v.org/software/dynamic-linking/
>
> On Sun, Sep 26, 2010 at 1:04 AM, Tassilo Philipp
> <tphilipp@potion-studios.com> wrote:
>> Hi,
>>
>> I finished my dyncall/Plan9/x86 port - thanks again Cinap and Steve for
>> pointing me into the right directions about the Plan9 calling
>> convention,
>> a few weeks ago.
>>
>> Anyways, dyncall has Plan9 support for x86, starting with Version 0.6,
>> maybe someone likes it or finds it useful (www.dyncall.org).
>>
>> Cheers,
>> Tassilo
>>
>>
>>
>
>
>
> --
> С наилучшими пожеланиями
> Жилкин Сергей
> With best regards
> Zhilkin Sergey
>
>




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-28 13:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-25 21:04 [9fans] dyncall on Plan9 Tassilo Philipp
     [not found] ` <2B81AE33-6D6D-4B38-8B4B-F34B6ED4D6A4@ar.aichi-u.ac.jp>
2010-09-27 16:02   ` Tassilo Philipp
2010-09-28  6:29 ` Sergey Zhilkin
2010-09-28 13:54   ` Tassilo Philipp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).