English 中文(简体)
在装配器中复制块块
原标题:Block copy in assembler

My project - RAM speed testing utilite. So I used MOVSD (as MOV with the biggest size block DW) to read some memory from one source and write to another. But the results that I got display that RAM isn t used, but instead is used memory cache, because read/write speed is 768 MByte/s in DDR2 SDRAM.

所以我需要80x86的装配器指令或功能来移动大块的内存、溢出缓存和测试内存,而不是缓存测试。我使用组装器是因为我不需要C/C++做优化,我重写不同块的内存和编译器可能认为它不需要,并摧毁我的测试。这就是为什么我不使用Memcpy和其他人。

最佳回答

移动大于最大缓存大小的块, 并确保您使用 movntdq 写入, 并使用 movntqa 读取 。

问题回答

暂无回答




相关问题
Duplicate a table row with UITableViewCellEditingStyleInsert?

I have an application based on the Core Data Books example, and I m coming to the conclusion that I need to give the user the ability to duplicate a row in the table - a set of data - and then let ...

Copy/Paste in Windows Forms with custom controls

I am writing a small application in C# using Windows Forms. I want to let my users copy and paste data around the application and there are some custom controls, for example one is a colour picker. ...

Copying only non-existent files in ant

I m deploying my project to a web-server to be deployed with java Web Start. However, Web Start uses modification date to figure out whether to download the resources again (by default). What I want ...

Copying one FlowDocument to Second FlowDocument

How can i copy the contents of one FlowDocument to another FlowDocument below is what i tryed foreach (var blk in fd1.Blocks) { fd2.Blocks.Add(blk); } fd1 is FlowDocument1 and fd2 is ...

emacs command to append to ring

How can I make an emacs command to copy text (to the kill ring) by appending? (Why is there no such built-in command?) Appending Kills mentions C-M-w (`append-next-kill ) which allows me to append ...

about get value from sqlite

Code Sample: NSString *str= [NSString stringWithUTF8String:(char *)sqlite3_column_text(selectStatement, 1)]; Test *t=[[Test alloc] init]; t.str=[str copy]; // why use "copy" here? [str release];

Insert into an STL queue using std::copy

I d like to use std::copy to insert elements into a queue like this: vector<int> v; v.push_back( 1 ); v.push_back( 2 ); queue<int> q; copy( v.begin(), v.end(), insert_iterator< queue&...

热门标签