From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <201503112030.t2BKU71p008530@skeeve.com> From: =?UTF-8?B?QXJhbSBIxIN2xINybmVhbnU=?= Date: Thu, 12 Mar 2015 09:50:14 +0100 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] ken cc for linux Topicbox-Message-UUID: 494043b0-ead9-11e9-9d60-3106f5b1d025 On Wed, Mar 11, 2015 at 10:04 PM, Ryan Gonzalez wrote: > Go had vastly better versions, but it seems they got ripped out recently.= I > think Go 1.3 may have had them, in which case you'd do something like: > > go tool 6c tst.c > go tool 6l -o tst tst.6 First, Go did not have "vastly better versions", Go's compilers came from Inferno and the back-ends were very minimally modified, mainly to fix bugs. The linkers and other lower level details were modified a lot, but they make what you want to do harder, not easier. Second, what you typed will try to link with the Go runtime, which is definitely not what you want. Third, it will not work, at least not without further work, main is not the entry point. Fourth, you don't have a standard library available. Go's compiler were there for building the Go runtime. To use them for anything else, you'd need *a lot* of work, much more work than by starting with the Plan 9/Inferno/Ken-cc directly. --=20 Aram H=C4=83v=C4=83rneanu