{"action":"opened","issue":{"url":"https://api.github.com/repos/sampsyo/braid/issues/9","repository_url":"https://api.github.com/repos/sampsyo/braid","labels_url":"https://api.github.com/repos/sampsyo/braid/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/sampsyo/braid/issues/9/comments","events_url":"https://api.github.com/repos/sampsyo/braid/issues/9/events","html_url":"https://github.com/sampsyo/braid/issues/9","id":229055928,"number":9,"title":"Main function in LLVM should either take argv/argc arguments or not exist at all","user":{"login":"sampsyo","id":188033,"avatar_url":"https://avatars1.githubusercontent.com/u/188033?v=3","gravatar_id":"","url":"https://api.github.com/users/sampsyo","html_url":"https://github.com/sampsyo","followers_url":"https://api.github.com/users/sampsyo/followers","following_url":"https://api.github.com/users/sampsyo/following{/other_user}","gists_url":"https://api.github.com/users/sampsyo/gists{/gist_id}","starred_url":"https://api.github.com/users/sampsyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sampsyo/subscriptions","organizations_url":"https://api.github.com/users/sampsyo/orgs","repos_url":"https://api.github.com/users/sampsyo/repos","events_url":"https://api.github.com/users/sampsyo/events{/privacy}","received_events_url":"https://api.github.com/users/sampsyo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-16T14:34:44Z","updated_at":"2017-05-16T14:34:44Z","closed_at":null,"body":"Currently, the `main` function in generated LLVM programs takes no \"normal\" arguments and an environment structure pointer. However, the main function for executable programs should instead take the traditional C argc/argv arguments so it can be invoked. (As an additional optimization, we could even imagine disabling the environment pointer argument completely when a function has no free variables—and `main` is guaranteed to be closed.)\r\n\r\nOn the other hand, when we just want to link the generated code into a larger program, perhaps it would be nice to have an option to disable the main function altogether."}}
{"actor":{"display_login":"sampsyo"}}