From owner-freebsd-questions Sat Jun 15 16:31:06 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA24323 for questions-outgoing; Sat, 15 Jun 1996 16:31:06 -0700 (PDT) Received: from jraynard.demon.co.uk (jraynard.demon.co.uk [158.152.42.77]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id QAA24318 for ; Sat, 15 Jun 1996 16:30:50 -0700 (PDT) Received: (from fqueries@localhost) by jraynard.demon.co.uk (8.6.12/8.6.12) id WAA13043; Sat, 15 Jun 1996 22:42:46 GMT Date: Sat, 15 Jun 1996 22:42:46 GMT Message-Id: <199606152242.WAA13043@jraynard.demon.co.uk> From: James Raynard To: randyd@nconnect.net CC: grog@lemis.de, questions@FreeBSD.ORG In-reply-to: <31C29019.41C67EA6@nconnect.net> (message from Randy DuCharme on Sat, 15 Jun 1996 10:27:37 +0000) Subject: Re: Assembler programming Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > The reason I'm so > interested in assembly code is because I developed a few C callable > modules for DOS using MASM. They were simple-but-fast graphics routines > that I've been able to use on nearly ANY C compiler. I'd hoped to be > able to use the same source (with a few mods) and re-assemble them and > use them in attempting to port some of my stuff to UNIX. (WHAT WAS I > THINKING ???!) This probably wouldn't work anyway - accessing any hardware directly is not very easy under Unix, and with good reason. The easiest way to do it under X is to look into things like Tcl/Tk. There are graphics libraries like PEX or GKS available. PEX comes with X; I submitted a port for an X version of GKS a while back but never heard any more about it (must get around to re-submitting it sometime). These are both international standards, so (in theory) any program you write using them should be portable. Neither of these are going to be as fast as assembler, but that's the price you pay for being portable! -- James Raynard, Edinburgh, Scotland james@jraynard.demon.co.uk jraynard@FreeBSD.ORG