9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Aram Hăvărneanu" <aram.h@mgk.ro>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Go: CGO and Plan 9
Date: Sat,  2 Feb 2013 15:28:40 +0100	[thread overview]
Message-ID: <CAEAzY395bTyA0_6Oc18x3VPBOEXN0hC371QAW7N4oLN7h14n8w@mail.gmail.com> (raw)
In-Reply-To: <631828b4eaee51d49ac685c47b6b3554@proxima.alt.za>

?c and ?g use the same calling convention, and segmented stacks are
implemented by the linker. You don't need cgo in order to call C code
from Go. Why do you want cgo?

Look at the various C files in the Go standard library, especially
inside runtime. Those are compiled with the Plan 9 compiler and Go
calls it just fine.

-- 
Aram Hăvărneanu



  parent reply	other threads:[~2013-02-02 14:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-30  4:41 lucio
2013-02-01 17:52 ` Pavel Zholkover
2013-02-02 14:28 ` Aram Hăvărneanu [this message]
2013-02-02 15:24   ` Anthony Martin
2013-02-02 15:52     ` lucio
2013-02-02 15:41   ` lucio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEAzY395bTyA0_6Oc18x3VPBOEXN0hC371QAW7N4oLN7h14n8w@mail.gmail.com \
    --to=aram.h@mgk.ro \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).