-
大小: 39KB文件類型: .zip金幣: 2下載: 0 次發布日期: 2021-05-20
- 語言: 其他
- 標簽:
資源簡介
Cache--主存、虛擬存儲器模擬) 存貯層次模擬器
常用的幾種存儲地址映象與變換方法,以及FIFO、LRU等替換算法的工作全過程模擬

代碼片段和文件信息
//?Cache.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Cache.h“
#include?“CacheDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCacheApp
BEGIN_MESSAGE_MAP(CCacheApp?CWinApp)
//{{AFX_MSG_MAP(CCacheApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CCacheApp?construction
CCacheApp::CCacheApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCacheApp?object
CCacheApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCacheApp?initialization
BOOL?CCacheApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CCacheDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2010-06-01?22:42??Cache\
?????文件??????????26??2010-05-30?10:18??Cache\a.txt
?????文件??????????11??2010-06-01?16:58??Cache\b.txt
?????文件????????2049??2010-05-28?20:57??Cache\Cache.cpp
?????文件????????4142??2010-05-31?08:38??Cache\Cache.dsp
?????文件?????????535??2010-05-28?20:57??Cache\Cache.dsw
?????文件????????1313??2010-05-28?20:57??Cache\Cache.h
?????文件????????7169??2010-05-29?12:39??Cache\Cache.rc
?????文件???????18468??2010-06-01?16:59??Cache\CacheDlg.cpp
?????文件????????2002??2010-05-29?17:06??Cache\CacheDlg.h
?????目錄???????????0??2010-06-01?22:42??Cache\Debug\
?????文件??????????26??2010-05-30?10:18??Cache\Debug\a.txt
?????文件??????122926??2010-06-01?16:57??Cache\Debug\Cache.exe
?????文件????????3561??2010-05-28?20:57??Cache\ReadMe.txt
?????目錄???????????0??2010-06-01?22:42??Cache\res\
?????文件????????1419??2010-05-29?12:39??Cache\resource.h
?????文件????????1078??2010-05-28?20:57??Cache\res\Cache.ico
?????文件?????????397??2010-05-28?20:57??Cache\res\Cache.rc2
?????文件?????????207??2010-05-28?20:57??Cache\StdAfx.cpp
?????文件????????1054??2010-05-28?20:57??Cache\StdAfx.h
?????目錄???????????0??2010-06-01?22:42??VirtualMem\
?????文件????????3651??2010-05-31?07:18??VirtualMem\ReadMe.txt
?????目錄???????????0??2010-06-01?22:42??VirtualMem\res\
?????文件????????1010??2010-05-31?07:33??VirtualMem\resource.h
?????文件????????1078??2010-05-31?07:18??VirtualMem\res\VirtualMem.ico
?????文件?????????402??2010-05-31?07:18??VirtualMem\res\VirtualMem.rc2
?????文件?????????212??2010-05-31?07:18??VirtualMem\StdAfx.cpp
?????文件????????1054??2010-05-31?07:18??VirtualMem\StdAfx.h
?????文件????????2119??2010-05-31?07:18??VirtualMem\VirtualMem.cpp
?????文件????????4235??2010-05-31?08:38??VirtualMem\VirtualMem.dsp
?????文件?????????545??2010-05-31?07:18??VirtualMem\VirtualMem.dsw
............此處省略4個文件信息
- 上一篇:lcd1601說明書
- 下一篇:spi fpga verilog 代碼
評論
共有 條評論