Author Topic: DOS AVX program  (Read 820 times)

Gunther

  • Member
  • *****
  • Posts: 3515
  • Forgive your enemies, but never forget their names
DOS AVX program
« on: April 05, 2015, 02:16:08 AM »
I've attached the file acopy.zip. It contains all sources for acopy.exe, a simple copy program, which uses AVX instructions. The main procedure is written in C and compiled with the gcc for DOS (producing a 32-bit Protected Mode application). The dirty work make the assembly language procedures (written for YASM, because it's DOS version is up to date).

For more background information, you should read that thread very attentive.

Here is the output without avx.com:
Quote

AVX support not available:
==========================

X[0] = 1.00    Y[0] = 1.00
X[1] = 2.00    Y[1] = 2.00
X[2] = 3.00    Y[2] = 3.00
X[3] = 4.00    Y[3] = 4.00

Please, press enter to end the application ...

 
The following output appears after launching avx.com:
Quote

AVX support available:
======================

X[0] = 1.00    Y[0] = 1.00    Z[0] = 1.00
X[1] = 2.00    Y[1] = 2.00    Z[1] = 2.00
X[2] = 3.00    Y[2] = 3.00    Z[2] = 3.00
X[3] = 4.00    Y[3] = 4.00    Z[3] = 4.00

Please, press enter to end the application ...


Gunther
Get your facts first, and then you can distort them.