{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/hsc2hs/issues/5","repository_url":"https://api.github.com/repos/haskell/hsc2hs","labels_url":"https://api.github.com/repos/haskell/hsc2hs/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/haskell/hsc2hs/issues/5/comments","events_url":"https://api.github.com/repos/haskell/hsc2hs/issues/5/events","html_url":"https://github.com/haskell/hsc2hs/pull/5","id":298908023,"number":5,"title":"Adds a crude at&t assembly parser to resolve constants","user":{"login":"angerman","id":40449,"avatar_url":"https://avatars2.githubusercontent.com/u/40449?v=4","gravatar_id":"","url":"https://api.github.com/users/angerman","html_url":"https://github.com/angerman","followers_url":"https://api.github.com/users/angerman/followers","following_url":"https://api.github.com/users/angerman/following{/other_user}","gists_url":"https://api.github.com/users/angerman/gists{/gist_id}","starred_url":"https://api.github.com/users/angerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angerman/subscriptions","organizations_url":"https://api.github.com/users/angerman/orgs","repos_url":"https://api.github.com/users/angerman/repos","events_url":"https://api.github.com/users/angerman/events{/privacy}","received_events_url":"https://api.github.com/users/angerman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-02-21T10:06:00Z","updated_at":"2018-02-21T23:49:58Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/haskell/hsc2hs/pulls/5","html_url":"https://github.com/haskell/hsc2hs/pull/5","diff_url":"https://github.com/haskell/hsc2hs/pull/5.diff","patch_url":"https://github.com/haskell/hsc2hs/pull/5.patch"},"body":"Our current approach is taken from autoconf, and requires a binary search to\r\nfind constants.  This is not only very time consuming but also breaks when the\r\ncompiler fails to recognize an expression as constant.  As such we ask the\r\ncompiler to produce assembly, crudely parse that assembly and try to extract the\r\nconstant directly from the generated assembly."},"comment":{"url":"https://api.github.com/repos/haskell/hsc2hs/issues/comments/367518219","html_url":"https://github.com/haskell/hsc2hs/pull/5#issuecomment-367518219","issue_url":"https://api.github.com/repos/haskell/hsc2hs/issues/5","id":367518219,"user":{"login":"angerman","id":40449,"avatar_url":"https://avatars2.githubusercontent.com/u/40449?v=4","gravatar_id":"","url":"https://api.github.com/users/angerman","html_url":"https://github.com/angerman","followers_url":"https://api.github.com/users/angerman/followers","following_url":"https://api.github.com/users/angerman/following{/other_user}","gists_url":"https://api.github.com/users/angerman/gists{/gist_id}","starred_url":"https://api.github.com/users/angerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angerman/subscriptions","organizations_url":"https://api.github.com/users/angerman/orgs","repos_url":"https://api.github.com/users/angerman/repos","events_url":"https://api.github.com/users/angerman/events{/privacy}","received_events_url":"https://api.github.com/users/angerman/received_events","type":"User","site_admin":false},"created_at":"2018-02-21T23:49:58Z","updated_at":"2018-02-21T23:49:58Z","author_association":"CONTRIBUTOR","body":"@trofi ahh, there it was, I knew I had seen something somewhere...\r\n\r\nThis PR allows to get the same results when cross compiling as one would when not. I’ve diffed the resulting win32 lib from the ghc tree after a cross compiler build with the one that @Mistuke generously provided me from his ghc tree on windows.\r\n\r\nApart from more LINE comments that hsc2hs inserts when run without —cross-compile, the computed values are identical."}}
{"actor":{"display_login":"angerman"}}