如何在vc6中使用SSE指令?

POWERPIGGY 2002-12-03 03:34:11
本人做图象处理,由于算法时间过长,想用SSE改写。
有什么办法可以在VC6下使用SSE?
谢谢!
...全文
96 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
heretic 2002-12-09
  • 打赏
  • 举报
回复
db byte, byte...
byte串就是机器码.必须自己手工编码.如果使用Intel C++编译器,可以直接调用函数来实现MMX、SSE和SSE2。
zhlmnet2003 2002-12-09
  • 打赏
  • 举报
回复
也不用,你可以先装sp5,然后还有一个让vc6支持sse的文件名字叫vcpp5.exe你到google搜索一下就找到了!好像装上就可以用了

The Visual C++ 6.0 Processor Pack provides intrinsic support for enhanced instruction sets supported by Intel and Advanced Micro Devices (AMD) processors. The instructions sets supported are Intel's Pentium III new instruction sets (Streaming SIMD Extensions [SSE]) and Intel's Pentium 4 new instruction sets (Streaming SIMD Extensions 2 [SSE2]) as well as AMD's 3DNow! Instruction sets.

This Processor Pack is recommended only for Visual C++ users who are interested in using the new instruction sets.


http://msdn.microsoft.com/vstudio/downloads/tools/ppack/default.asp

RichardStevens 2002-12-08
  • 打赏
  • 举报
回复
推荐1998年电子工业出版的〈图形程序开发指南〉一书,或许对你帮助。
IT-司马青衫 2002-12-05
  • 打赏
  • 举报
回复
.386
.model plat stdcall
.option casemap:none

.886!!!!!!!!
heretic 2002-12-04
  • 打赏
  • 举报
回复
至少db可以吧
fatyee 2002-12-04
  • 打赏
  • 举报
回复
__asm
{
...
}
you may enter your SSE code within the two {}
crime 2002-12-04
  • 打赏
  • 举报
回复
很简单,用_emit

The _emit Pseudoinstruction

The _emit pseudoinstruction is similar to the DB directive of MASM. You use _emit to define a single immediate byte at the current location in the current text segment. However, _emit can define only one byte at a time, and it can only define bytes in the text segment. It uses the same syntax as the INT instruction.

The following fragment places the given bytes into the code:

#define randasm __asm _emit 0x4A __asm _emit 0x43 __asm _emit 0x4B
.
.
.
__asm {
randasm
}

POWERPIGGY 2002-12-04
  • 打赏
  • 举报
回复
是可以使用内联汇编,但好象不支持SSE的指令
另外DB是什么呢?谢谢
giantzz 2002-12-03
  • 打赏
  • 举报
回复
就是内联汇编指令,CSDN的文档中有一篇"在Visual C++中使用内联汇编"
键入关键字"内联"可以搜索到.

21,458

社区成员

发帖
与我相关
我的任务
社区描述
汇编语言(Assembly Language)是任何一种用于电子计算机、微处理器、微控制器或其他可编程器件的低级语言,亦称为符号语言。
社区管理员
  • 汇编语言
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧