[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with gcc inline asm



On Wed, Nov 13, 2002 at 11:49:55AM +0100, Claudio Jeker wrote:
> I try to port and create a port for transcode
> (http://www.theorie.physik.uni-goettingen.de/~ostreich/transcode/)
> 
> My problem is, that OpenBSDs old gcc and especially as does not support
> inline mmx assembler.

Quite a coincidence, since I was having exactly the same
problem with another package today. After a little Googling I 
figured out that OpenBSD seems to use some quite old version 
of as (and I guess thus an old version GNU binutils also). 

What I did was download the latest binutils from a GNU
mirror site. For example ftp.funet.fi/pub/gnu/prep/binutils.
I then tried to configure the whole package, but it failed
with some obscure error. I then just manually configured
and made gas (GNU as), and the components it required. 
Then I just used gas instead of the system as for the
assembly stuff. Worked like a charm, although it might
require some fiddling around with the makefile and/or
some manual compiling (I manually compiled all my *.s
files to *.o files with gas).

> My question is: how to solve this in a elegant way?

A more elegant way might be to simply install the whole
updated binutils package, but:

1) I didn't want to figure out how to fix the top-level
   config error.
2) I don't dare to install the whole thing. It might
   break something..?

Casper