From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,b6200ff27c2364bd,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1995-02-12 03:36:07 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!gw1.att.com!csn!boulder!bloom-beacon.mit.edu!eru.mt.luth.se!news.luth.se!sunic!news.uni-c.dk!iesd.auc.dk!alope!devitech From: devitech@novi.auc.dk (Devitech I/S) Newsgroups: comp.sys.dec Subject: How can I allocate a dataarray in Cache? Date: Wed, 8 Feb 1995 21:38:36 LOCAL Organization: Math & CS at Aalborg University Message-ID: NNTP-Posting-Host: alope.novi.auc.dk X-Newsreader: Trumpet for Windows [Version 1.0 Rev B final beta #4] Hi folks! I have a problem concerning speed optimisation of C++ code. I have to process large arrays (images typically 256x256 bytes and larger) and wonder if I somehow could speed up my code. Currently my host is a AlphaAXP PCI33 with WinNT OS and i'm using a DEC C++ compiler. When I perform processing on the Image dataarray, I currently have to fetch data from the outermost RAM storage (70ns). So I thought if I somehow could either: 1)split up my processing into processing on smaller subarrays. This I thought could be done by copying a small pieces of the large array into the internal cache ,do the processing, copy data back to the external memory and load the next subarray etc. But is it possible to reserve/allocate a part of the internal cache, so it is reserved only for data processed by a specific routine??? 2) Another possibility I thought might be relevant, was to store and Lock the whole dataarray in the secondary cache, until my processing is done, and then afterwards move data to the outermost ram. Also it would be preferable if I could use the DMA controller to move data meanwhile processing on another data block. If anyone have any suggestion how to solve my cache allocation problem or knows any use able literature describing this, please reply -100x Thanks in advance. Cheers- Thomas