*BSD News Article 28959


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!pacbell.com!ihnp4.ucsd.edu!news.cerf.net!mvb.saic.com!MathWorks.Com!yeshua.marcam.com!charnel!xmission!u.cc.utah.edu!cs.weber.edu!terry
From: terry@cs.weber.edu (Terry Lambert)
Newsgroups: comp.os.386bsd.development
Subject: Re: Gnu Inline Assembly question
Date: 29 Mar 1994 21:41:06 GMT
Organization: Weber State University, Ogden, UT
Lines: 21
Message-ID: <2na79i$iuk@u.cc.utah.edu>
References: <2n76gvINNbjn@uwm.edu>
NNTP-Posting-Host: cs.weber.edu

In article <2n76gvINNbjn@uwm.edu> knier@miller.cs.uwm.edu (Robert Knier ) writes:
>	Sorry if this doesn't belong here - but since this is for developing a Future Domain, Seagate ST01/02 device driver here goes.  Does any one have info  on inline assembly with the gnu compiler?  More specifically, I am trying to 
>write some assembly code to speed up data transfer to and from a future domain
>card.  I am wondering on the syntax of inline assembly code. 

My personal take on this would be to write a small C function and cc -S it,
and then build a .s file for it using the assembly source file from the cc
as a template to make it easy on yourself.

The main problem you face in using assembly is non-portability, and if you
don't do it now, someone is going to have to redo it later (and they might
not have the SCSI cards to do it and keep it working).

Good luck on the driver!


					Terry Lambert
					terry@cs.weber.edu
---
Any opinions in this posting are my own and not those of my present
or previous employers.