From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] gcc trouble In-Reply-To: Your message of "Fri, 07 Nov 2003 10:58:41 MST." From: "Russ Cox" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <68299.1068224018.1@t40.swtch.com> Message-Id: Date: Fri, 7 Nov 2003 11:53:38 -0500 Topicbox-Message-UUID: 81d88776-eacc-11e9-9e20-41e7f4b1d025 > ps: does anyone know if it's possible to link together object files > compiled with pcc and 8c? yes. pcc is just a wrapper around 8c. > how about gcc and 8c/pcc? no. these object files are completely different format. > say I want to > write the gui for a unix program i'm porting, one option is writing > ape libraries for draw(), yes, this is an option. > the other is writing native draw() code > which links with the rest of the program. possible? not as much, no. ape and native plan 9 c code can't be mixed too easily since, for example, they have different open, read, write, etc. if you got the linking order correct (which would be a pain) then perhaps (perhaps!) libdraw could manage to use the ape open, but it would still need to pull in the libc utf routines and probably others. like fork or wait. and as soon as you touch libthread you might as well give up. anything is possible, but this is not worth the trouble. another option is writing the code in native plan 9 style and using the porting library, which does include libdraw.