Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime: allow invoking Go from C main program #4848

Closed
rsc opened this issue Feb 19, 2013 · 11 comments
Closed

runtime: allow invoking Go from C main program #4848

rsc opened this issue Feb 19, 2013 · 11 comments

Comments

@rsc
Copy link
Contributor

rsc commented Feb 19, 2013

I don't know if there are relevant open bugs for this. I didn't see any on a quick
glance.
This issue is for tracking work toward being able to call Go from C programs (perhaps
linked into the program already, perhaps as a dynload .so file).

Elias Naur has done some good work getting the raw technical details of things like
large-model, position-independent code working.

The biggest step that remains is defining what it means to enter a Go program. Do we use
the usual 'run main.init+main.main' that we use for standalone binaries? Do we use
something else? Is os.Args defined? And so on.

I expect this to happen after Go 1.1.
@alberts
Copy link
Contributor

alberts commented Feb 24, 2013

Comment 1:

issue #256 is about a part of this.

@eliasnaur
Copy link
Contributor

Comment 3:

https://groups.google.com/forum/?fromgroups#!topic/golang-nuts/zmjXkGrEx6Q is the
golang-nuts thread for my updated proposal. It also includes links to two CLs with
updated implementation for linux/amd64.

@rsc
Copy link
Contributor Author

rsc commented Jul 30, 2013

Comment 4:

Labels changed: added go1.3.

@robpike
Copy link
Contributor

robpike commented Aug 20, 2013

Comment 5:

Labels changed: removed go1.3.

@rsc
Copy link
Contributor Author

rsc commented Nov 27, 2013

Comment 6:

Labels changed: added go1.3maybe.

@rsc
Copy link
Contributor Author

rsc commented Dec 4, 2013

Comment 7:

Labels changed: added release-none, removed go1.3maybe.

@rsc
Copy link
Contributor Author

rsc commented Dec 4, 2013

Comment 8:

Labels changed: added repo-main.

@gopherbot
Copy link

Comment 9:

CL https://golang.org/cl/9738047 references this issue.

@gopherbot
Copy link

Comment 10:

CL https://golang.org/cl/9738047 references this issue.

@keithkml
Copy link

keithkml commented Jan 8, 2015

I believe this is a duplicate of #2790

@ianlancetaylor
Copy link
Contributor

This issue doesn't have much useful information it, so closing it as a duplicate.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants