473,786 Members | 2,744 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

open bank policy optimization

Hi,

I am newbie in optimization techniques and I need a little of help.

I want to take adventage of the open bank and open row policy
available in the processor (it can keep 4 banks open per bank, for a
total of 12 banks at a time) that I am using (AU1xxx), by locating
code, data, etc. on separete SDRAM bank and row boundaries.

The processor's documentation says that it can be done using the
linker, to indicate aligment of the various sections.

I am using MS compiler (but in general this apply for any compiler),
which allows to do that with:

#pragma comment(linker, "/SECTION:name, ALIGN=#")

My problem is, I do no understand how all this fit together. For
example, how can I use this technique to align disk buffers or program
code on an SDRAM bank boundary (i.e. 128 MB SDRAM with 32 MB bank size
and 4 KB row size)?

Thanks a lot for your help.

Alex

Jun 8 '07 #1
3 1489
al*******@yahoo .com.mx wrote:
Hi,

I am newbie in optimization techniques and I need a little of help.

I want to take adventage of the open bank and open row policy
available in the processor (it can keep 4 banks open per bank, for a
total of 12 banks at a time) that I am using (AU1xxx), by locating
code, data, etc. on separete SDRAM bank and row boundaries.
[snip]

Wrong newsgroup, unfortunately.

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

HTH,
- J.
Jun 8 '07 #2
On 8 Juni, 15:15, alexqu...@yahoo .com.mx wrote:
Hi,

I am newbie in optimization techniques and I need a little of help.

I want to take adventage of the open bank and open row policy
available in the processor (it can keep 4 banks open per bank, for a
total of 12 banks at a time) that I am using (AU1xxx), by locating
code, data, etc. on separete SDRAM bank and row boundaries.

The processor's documentation says that it can be done using the
linker, to indicate aligment of the various sections.

I am using MS compiler (but in general this apply for any compiler),
which allows to do that with:

#pragma comment(linker, "/SECTION:name, ALIGN=#")

My problem is, I do no understand how all this fit together. For
example, how can I use this technique to align disk buffers or program
code on an SDRAM bank boundary (i.e. 128 MB SDRAM with 32 MB bank size
and 4 KB row size)?
Are you sure that you will benefit from this kind of optimisation,
have you profiled your code and performed all other kinds of
optimisations that can be done?

A second comment, does this really work on a modern platform with
virtual memory (or are you programming against an embedded
platform,?). Since it's up to the OS to map the virtual memory
addresses into real, physical, addresses I can't see how the compiler
or linker can make any changes when it comes to physical placement.

--
Erik Wikström

Jun 8 '07 #3
Hi Eric,

well, I am actually trying to use this technique in an embedded
device, but it uses VM (WinCE).

Not sure how good would be the improvement, it is what I want to see.
The documentation says that it can improve the SDRAM throughput due to
locality of references (i.e. having instructions and data residing in
different banks, which improve access time to these items).

Thanks and sorry if it is a little offtopic here, but it was the NW
where I found more topics about optimizations.

Regards,

Alex
>
Hi,
I am newbie in optimization techniques and I need a little of help.
I want to take adventage of the open bank and open row policy
available in the processor (it can keep 4 banks open per bank, for a
total of 12 banks at a time) that I am using (AU1xxx), by locating
code, data, etc. on separete SDRAM bank and row boundaries.
The processor's documentation says that it can be done using the
linker, to indicate aligment of the various sections.
I am using MS compiler (but in general this apply for any compiler),
which allows to do that with:
#pragma comment(linker, "/SECTION:name, ALIGN=#")
My problem is, I do no understand how all this fit together. For
example, how can I use this technique to align disk buffers or program
code on an SDRAM bank boundary (i.e. 128 MB SDRAM with 32 MB bank size
and 4 KB row size)?

Are you sure that you will benefit from this kind of optimisation,
have you profiled your code and performed all other kinds of
optimisations that can be done?

A second comment, does this really work on a modern platform with
virtual memory (or are you programming against an embedded
platform,?). Since it's up to the OS to map the virtual memory
addresses into real, physical, addresses I can't see how the compiler
or linker can make any changes when it comes to physical placement.

--
Erik Wikström- Hide quoted text -

- Show quoted text -

Jun 8 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
3852
by: Jayme Assuncao Casimiro | last post by:
Is there the possibility of not permiting the user of opening two windows of the same web site? Thanks +---------------------------------------------+ | Jayme Assuncao Casimiro | | Graduado em Ciência da Computação | | Estudante de Mestrado em Computação |
25
2448
by: PRESENT321 | last post by:
I just wanted to get some advice. I've had a few years experience in web site design and server-side programming and am fairly confident in my skills. There is a local Credit Union wanting to add a few features to their site (bill pay, transfer money between banks) and I am interested in the job. However, I've never worked for a bank before. Any suggestions about how to win the job, and how to ensure my work is secure enough for this
5
3115
by: Martin Vorbrodt | last post by:
I'm designing a Matrix class of 4x4 matrices used in computer graphics. Both OpenGL and Direct3D can take a pointer to array of 16 floats which represent the values in the matrix. OGL takes it in column order, D3D in row order. Therefore row = 2, col = 3 will result in different offset into the float array depending on the API. Here is my basic design test program: #include <iostream> using std::cout; using std::endl;
13
1715
by: Paul T. Rong | last post by:
I use Access 2k under Windows XPPRO.The form is based on a query which is based on another query.What should I do to improve the performance? Thanks, Paul
0
1027
by: Brian | last post by:
When I try to open a web project, I get the following error: "The web server reported the following error when attempting to create or open the web project located at the following url:"..."HTTP/1.1 500 Internal Server Error". This began happening for our entire development staff after a security policy was pushed out that removed us from four specific rights, such as ""Replace a process level token". This was corrected and we updated...
4
12284
by: bbdobuddy | last post by:
Hi, How do I open a Microsoft Access 2003 form from Visual Basic.net Thanks in advance bbdobuddy
0
1264
by: malcolm | last post by:
Bank Charges Refunded Free help to recover your bank or credit card charges from www.bankchargesrefunded.co.uk Its your money and its better in your pocket!
1
25108
by: Charlie | last post by:
I am trying to make an XMLHttpRequest which violates the default "same- origin"policy in Firefox. I checked the archives and found a method that should work but it does not. Below is the test code I isolated. I set signed.applets.codebase_principal_support true and seemed to get the UniversalBrowserRead permission but then the open still failed with the same old "Permission denied to call method XMLHttpRequest.open" error. Can someone tell...
2
4343
by: cheongsiwei | last post by:
Need some helps here >.< The project i required to complete : Create a base class Bank of a bank account with member functions to allow withdrawal, deposit and calculation of balance. Account should have a name, account number and type. Create derived class Saving of a saving account, which allows overdraft up to $8000 and gives interest of 2% per annum. Create another derived class Current of a current account, which does not...
0
10363
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10164
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8992
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7515
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6748
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4067
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.