From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Hohensee Message-Id: <200107122216.SAA29875@smarty.smart.net> To: 9fans@cse.psu.edu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [9fans] partial-Plan9ification question Date: Thu, 12 Jul 2001 18:16:00 -0400 Topicbox-Message-UUID: c8cf8d8a-eac9-11e9-9e20-41e7f4b1d025 Hi. Given a POSIXy unix, with lots of inline assembly interlaced in the C with Gcc asm(""), consider losing all the asm("") in lieu of C-called assembly and inlined C. This presents a factoring problem for header files and so on relative to unix. Given also that Plan 9's header structure is the best for languages like C, and given that we want that Plan9ism, but not the cross-compile facilities any time soon, how would you restructure the sources? (I'll be presuming my whole world is one cpu.) I know I'll need a cpu.S, a cpu.o, but then things get variable. I'll also probably be doing ld-related #pragmas, and maybe a mk or a proto-mk in sh, but I don't know that that pertains to the above issue if I just assume one CPU. Care to comment, maestros? Rick Hohensee www.clienux.com