Hi All,



How to declare some methods of a CPP class to be paged segment?



TIA

Re: #pragma alloc_text by cristalink

cristalink
Wed Feb 08 15:26:26 CST 2006

#pragama code_seg(push, "PAGE")
//paged code
#pragama code_seg(pop)

It's not a good idea to use paged code in your C++ driver, if you don't know
how to make it pageable.

--
http://www.cristalink.com


"Andrew Sha" <universalkludge@hotmail.com> wrote in message
news:u6efZ8OLGHA.2604@TK2MSFTNGP09.phx.gbl...
> Hi All,
>
>
>
> How to declare some methods of a CPP class to be paged segment?
>
>
>
> TIA
>
>



Re: #pragma alloc_text by Andrew

Andrew
Wed Feb 08 15:38:53 CST 2006

Thanks, but you remark is redundant



"cristalink" <cristalink@nospam.nospam> wrote in message
news:%23%23OzSZPLGHA.1760@TK2MSFTNGP10.phx.gbl...
> #pragama code_seg(push, "PAGE")
> //paged code
> #pragama code_seg(pop)
>
> It's not a good idea to use paged code in your C++ driver, if you don't
> know how to make it pageable.
>
> --
> http://www.cristalink.com
>
>
> "Andrew Sha" <universalkludge@hotmail.com> wrote in message
> news:u6efZ8OLGHA.2604@TK2MSFTNGP09.phx.gbl...
>> Hi All,
>>
>>
>>
>> How to declare some methods of a CPP class to be paged segment?
>>
>>
>>
>> TIA
>>
>>
>
>



Re: #pragma alloc_text by Mark

Mark
Wed Feb 08 21:13:25 CST 2006

On Wed, 8 Feb 2006 15:38:53 -0600, "Andrew Sha"
<universalkludge@hotmail.com> wrote:

>Thanks, but you remark is redundant
>

Well perhaps but there is a documented issue with code segments and
C++ generated methods (constructors destructors copy operators
template function instantiations etc.) Once you start playing around
with code segments in your C++ driver you should also be regularly
verifying that nothing is being inadvertently put in the wrong sort of
segment.

>
>
>"cristalink" <cristalink@nospam.nospam> wrote in message
>news:%23%23OzSZPLGHA.1760@TK2MSFTNGP10.phx.gbl...
>> #pragama code_seg(push, "PAGE")
>> //paged code
>> #pragama code_seg(pop)
>>
>> It's not a good idea to use paged code in your C++ driver, if you don't
>> know how to make it pageable.
>>
>> --
>> http://www.cristalink.com
>>
>>
>> "Andrew Sha" <universalkludge@hotmail.com> wrote in message
>> news:u6efZ8OLGHA.2604@TK2MSFTNGP09.phx.gbl...
>>> Hi All,
>>>
>>>
>>>
>>> How to declare some methods of a CPP class to be paged segment?
>>>
>>>
>>>
>>> TIA
>>>
>>>
>>
>>
>


=====================
Mark Roddy DDK MVP
Windows Vista/2003/XP/2000 Consulting
Device and Filesystem Drivers
Hollis Technology Solutions 603-321-1032
www.hollistech.com

Re: #pragma alloc_text by Andrew

Andrew
Thu Feb 09 09:40:12 CST 2006

It's always a good idea to take a look into a map file



"Mark Roddy" <markr@hollistech.com> wrote in message
news:dlclu1p9omk27eucak6tkcffj8l505pjlk@4ax.com...
> On Wed, 8 Feb 2006 15:38:53 -0600, "Andrew Sha"
> <universalkludge@hotmail.com> wrote:
>
>>Thanks, but you remark is redundant
>>
>
> Well perhaps but there is a documented issue with code segments and
> C++ generated methods (constructors destructors copy operators
> template function instantiations etc.) Once you start playing around
> with code segments in your C++ driver you should also be regularly
> verifying that nothing is being inadvertently put in the wrong sort of
> segment.
>
>>
>>
>>"cristalink" <cristalink@nospam.nospam> wrote in message
>>news:%23%23OzSZPLGHA.1760@TK2MSFTNGP10.phx.gbl...
>>> #pragama code_seg(push, "PAGE")
>>> //paged code
>>> #pragama code_seg(pop)
>>>
>>> It's not a good idea to use paged code in your C++ driver, if you don't
>>> know how to make it pageable.
>>>
>>> --
>>> http://www.cristalink.com
>>>
>>>
>>> "Andrew Sha" <universalkludge@hotmail.com> wrote in message
>>> news:u6efZ8OLGHA.2604@TK2MSFTNGP09.phx.gbl...
>>>> Hi All,
>>>>
>>>>
>>>>
>>>> How to declare some methods of a CPP class to be paged segment?
>>>>
>>>>
>>>>
>>>> TIA
>>>>
>>>>
>>>
>>>
>>
>
>
> =====================
> Mark Roddy DDK MVP
> Windows Vista/2003/XP/2000 Consulting
> Device and Filesystem Drivers
> Hollis Technology Solutions 603-321-1032
> www.hollistech.com