Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Nov 2003 13:43:16 +0900
From:      Till Plewe <till@plewe.is.tsukuba.ac.jp>
To:        freebsd-questions@freebsd.org
Subject:   assembler, icc/gcc,
Message-ID:  <20031106044316.GB11221@plewe.is.tsukuba.ac.jp>

next in thread | raw e-mail | index | archive | help

I am writing a program where speed is very important.
Some parts will probably have to be written in assembler.

I have a dual-Xeon machine running CURRENT. 

I am looking for {advice on,experiences people have had with} writing
assembler programs for pentium4/xeon processors.  (I have too many
manuals right now and difficulties in deciding where to start)

In particular, I am not sure whether I should be using nasm/icc or
gas/gcc.  Nasm supports SSE2 instructions (I don't know if gas does,
the intel2gas port doesn't) which I probably need in order to
manipulate 81bit-500bit integers (sets) efficiently.  On the other
hand I would like to be able to use inline assembler but that seems to
be impossible with NASM and gcc. I don't exactly know what style
of inline assembler icc supports yet.

Besides /usr/ports/lang/intel2gas there is a nasm-2-gcc-inline
translator at Fermilab http://lqcd.fnal.gov/sse/inline.html which I
haven't tried yet. 

In any case any suggestions as to how to proceed would be appreciated.

- Till



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031106044316.GB11221>