473,806 Members | 2,259 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Section attribute "K"?

The docs say:

K Cacheable Marks the section as not cacheable

and

specify /SECTION:.text,! K and DUMPBIN will reveal section
characteristics , including "Not Cached."

There seems to be a contradiction. Does "K" mark the section as cacheable
or not cacheable?
--
- Vince
Jun 23 '06 #1
6 1265
"Vincent Fatica" <ab***@localhos t.com> wrote in message
news:44******** @news.vefatica. net...
The docs say:

K Cacheable Marks the section as not cacheable

and

specify /SECTION:.text,! K and DUMPBIN will reveal section
characteristics , including "Not Cached."

There seems to be a contradiction. Does "K" mark the section as cacheable
or not cacheable?


I think the '!' negates the attribute. So K would be Cacheable and !K would
be NOT Cacheable.
--
Jeff Partch [VC++ MVP]
Jun 23 '06 #2
On Fri, 23 Jun 2006 18:25:26 -0500, "Jeff Partch" <je***@mvps.org > wrote:
"Vincent Fatica" <ab***@localhos t.com> wrote in message
news:44******* *@news.vefatica .net...
The docs say:

K Cacheable Marks the section as not cacheable

and

specify /SECTION:.text,! K and DUMPBIN will reveal section
characteristics , including "Not Cached."

There seems to be a contradiction. Does "K" mark the section as cacheable
or not cacheable?


I think the '!' negates the attribute. So K would be Cacheable and !K would
be NOT Cacheable.


That's what seems to be the case. So the table in the docs indicating:

K ... Cacheable ... Marks the section as not cacheable

is wrong, eh?
--
- Vince
Jun 23 '06 #3
"Vincent Fatica" <ab***@localhos t.com> wrote in message
news:44******** @news.vefatica. net...
On Fri, 23 Jun 2006 18:25:26 -0500, "Jeff Partch" <je***@mvps.org > wrote:
"Vincent Fatica" <ab***@localhos t.com> wrote in message
news:44****** **@news.vefatic a.net...
The docs say:

K Cacheable Marks the section as not cacheable

and

specify /SECTION:.text,! K and DUMPBIN will reveal section
characteristics , including "Not Cached."

There seems to be a contradiction. Does "K" mark the section as
cacheable
or not cacheable?


I think the '!' negates the attribute. So K would be Cacheable and !K
would
be NOT Cacheable.


That's what seems to be the case. So the table in the docs indicating:

K ... Cacheable ... Marks the section as not cacheable

is wrong, eh?


Oh, I'm a bonehead -- I see what you're saying now. :) Whatever its trying
to mean, that 'not' has been part of the documentation since at least Oct
2001. I think they try to make it make sense with the...

"K [is] peculiar in that the section flag... that correspond to [it] [is] in
the negative sense. If you specify [K] on the .text section
(/SECTION:.text,K ), there will be no difference ... when you run DUMPBIN
[because] it was already implicitly cached. To remove [it] specify ...
!K..."

....but it still sounds like an explanation of a snake swallowing its tail.

--
Jeff Partch [VC++ MVP]
Jun 24 '06 #4
On Fri, 23 Jun 2006 19:14:45 -0500, "Jeff Partch" <je***@mvps.org > wrote:
That's what seems to be the case. So the table in the docs indicating:

K ... Cacheable ... Marks the section as not cacheable

is wrong, eh?
Oh, I'm a bonehead -- I see what you're saying now. :) Whatever its trying
to mean, that 'not' has been part of the documentation since at least Oct
2001.


It's what you currently see online at MSDN:

MSDN Library > Development Tools and Languages > Visual Studio > Visual C++ Building a C/C++ Program > C/C++ Building Reference > Linking > Linker

Options > /SECTION (Specify Section Attributes)
--
- Vince
Jun 24 '06 #5
"Vincent Fatica" <ab***@localhos t.com> wrote in message
news:44******** @news.vefatica. net...
On Fri, 23 Jun 2006 19:14:45 -0500, "Jeff Partch" <je***@mvps.org > wrote:
That's what seems to be the case. So the table in the docs indicating:

K ... Cacheable ... Marks the section as not cacheable

is wrong, eh?


Oh, I'm a bonehead -- I see what you're saying now. :) Whatever its trying
to mean, that 'not' has been part of the documentation since at least Oct
2001.


It's what you currently see online at MSDN:


I know. What I mean is it has said the same thing for ~5 years. While its
not impossible that its a typo or a mistake that's gone unnoticed for
half-a-decade and several linker versions, I suspect it is trying to say
something subtle with intent. The fact that all that gobbledygook about K
being peculiar has been added since then and now, indicates to me that
somebody has already said 'Huh?', and that the doc owner approved the 'not'
and then tried to make its intended meaning more clear. I'm not sure s/he
succeeded, because it still sounds backwards to me too. Of course, I'm only
a fry-cook and a self-confessed bonehead. :)
--
Jeff Partch [VC++ MVP]
Jun 24 '06 #6
Since caching is an esoteric kernel mode thing, maybe the K attribute actually
is not handled by the loader, or handled in some not straightforward way.
Can the OP tell why he needs noncached memory (outside of kernel & device drivers context)?

Regards,
--PA
Jun 24 '06 #7

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

Similar topics

1
11253
by: yamini | last post by:
Here I am trying to use tag files in JSP2.0 with tomcat 5. test.jsp ------- %@ taglib prefix="test" tagdir="/WEB-INF/tags" %> <html> <head> <title>Untitled Document</title> </head> <body>
17
7266
by: Torbjørn Pettersen | last post by:
I've got a table where I want some of the cells to use a background image. The cells have variable height, so I am using an image with a rather small height to fill up the background of the cells, thus making I look like one high image in there. When validating it, I get this error: there is no attribute "BACKGROUND" The validators also tell me there are no "HEIGHT" or
1
686
by: Markus Elfring | last post by:
How much are you interested that the attribute "style" will offer the same or similar capabilities like they are provided by the element "style" in the element "head"? Do you want that the document "Syntax of CSS rules in HTML's "style" attribute" (http://www.w3.org/TR/css-style-attr) will become an official recommendation in the near future? Best regards, Markus Elfring
2
2784
by: Hartmut Sbosny | last post by:
Hello, I get the linker message `.gnu.linkonce.t._ZN3TNT12CurveTntPlotIdE6handleEi' referenced in section `.rodata' of FollowCurveWindow.o: defined in discarded section `.gnu.linkonce.t._ZN3TNT12CurveTntPlotIdE6handleEi' of FollowCurveWindow.o i.e. of the structur
4
4675
by: mike | last post by:
regards: <a href="JavaScript:loadwindow(106,90);" style="font-family:Verdana;">元智Intranet</a> In HTML spec,are "href" and "style" called "attribute"?....@@ Could someone good give me the hand? @@. thank you may god be with you
4
15788
by: Manuel Faux | last post by:
Hello! I used the "File Upload - Validator" and the result is like the following: Line 13, column 204: there is no attribute "border" ....irefox!" title="Get Firefox!" border="0" /></a></p> You have used the attribute named above in your document, but the document type you are using does not support that attribute for this
0
2186
by: Carl Gilbert | last post by:
Hi I am trying to use a custom attribute that takes in an array or list of custom objects. Ths custom object has a text property and a type property. I have a custom attribute which has a constructor that takes a class as follows: ======================================================= Public Class MyAttribute Inherits System.Attribute
5
3678
by: crystalattice | last post by:
I've finally figured out the basics of OOP; I've created a basic character creation class for my game and it works reasonably well. Now that I'm trying to build a subclass that has methods to determine the rank of a character but I keep getting errors. I want to "redefine" some attributes from the base class so I can use them to help determine the rank. However, I get the error that my base class doesn't have the dictionary that...
1
3886
by: Miggiddy79 | last post by:
Does any body know how to fix this. I am trying to validate these html codes through the markup validation. I have 5 error messages: 1) Line 114, Column 15: there is no attribute "BACKGROUND" . <td background="images/nav1bg.gif" onMouseOver="this.className='over'" onMouseOu 2) Line 223, Column 74: there is no attribute "BACKGROUND" .
0
9718
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10364
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...
0
10109
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9186
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
7649
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
6876
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();...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4328
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
3
3008
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.