473,403 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

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 1252
"Vincent Fatica" <ab***@localhost.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***@localhost.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***@localhost.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***@localhost.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?


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***@localhost.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
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
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,...
1
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...
2
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...
4
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...
4
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>...
0
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...
5
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...
1
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" ....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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,...
0
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...

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.