Re: compilers using MMX instructions in the generated code

Juergen Kahrs <jkahrs@castor.atlas.de>
9 Jan 2000 22:49:40 -0500

          From comp.compilers

Related articles
compilers using MMX instructions in the generated code ramkik@sasi.com (Ramkishor) (2000-01-06)
Re: compilers using MMX instructions in the generated code bcombee@metrowerks.com (2000-01-09)
Re: compilers using MMX instructions in the generated code jkahrs@castor.atlas.de (Juergen Kahrs) (2000-01-09)
Re: compilers using MMX instructions in the generated code Milind.Girkar@intel.com (Milind Girkar) (2000-01-09)
Re: compilers using MMX instructions in the generated code plakal@cs.wisc.edu (2000-01-09)
Re: compilers using MMX instructions in the generated code lindahl@pbm.com (2000-01-12)
Re: compilers using MMX instructions in the generated code olefevre@my-deja.com (2000-01-12)
Re: compilers using MMX instructions in the generated code mlross@jf.intel.com (2000-01-12)
Re: compilers using MMX instructions in the generated code andi@complang.tuwien.ac.at (2000-01-15)
[5 later articles]
| List of all articles for this month |
From: Juergen Kahrs <jkahrs@castor.atlas.de>
Newsgroups: comp.compilers
Date: 9 Jan 2000 22:49:40 -0500
Organization: STN Atlas Elektronik GmbH SLE1
References: 00-01-011
Keywords: code, optimize

Ramkishor wrote:


> Are there any compilers, which can use MMX instructions(Any SIMD
> instructions like 3DNow from AMD or VIS from SUN etc.) in the code
> generated by them?


Yes, the GNU CC people have started integrating such things into their
code generators.


You are addressing the more general problem of integrating SIMD
instructions. Look there:


    http://min.ecn.purdue.edu/~rfisher/


There is a special GNU CC variant, called PGCC which is streamlined
for Pentium CPUs. Even Linux distributions based on it are available.


> [My impression is that those special purpose instructions are either stuck
> in assembler language libraries or generated via machine specific macros.


Indeed, there are some libraries with MMX and 3DNow. The Linux
Journal had articles on both of them:


    http://www2.linuxjournal.com/lj-issues/issue68/index.html
    http://www2.linuxjournal.com/lj-issues/issue61/index.html


> It's hard to generate good code for complex instructions -- that's one of
> the reasons that computer architecture moved from CISC to RISC. -John]


For the particular case of MMX, here is a page with an example
programm:


    http://www.sds.lcs.mit.edu/MMX
+---------------------------------------------------------------------+
| Juergen Kahrs, STN Atlas Elektronik GmbH, D-28305 Bremen |
| Simulation Division Sebaldsbruecker Heerstr. 235 +49/421/457-2819 |
+----------- http://home.t-online.de/home/Juergen.Kahrs/ -------------+


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.