CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2006
    Posts
    28

    Segments in Visual C++ Compiler

    Hi all,
    I was thinking about what segments are currently supported in Visual C++ compiler. I am currently working on drivers and driver documentation says that DriverEntry routine should be pageable and must be placed in INIT segment using alloc_text pragma directive. Now, I was thinking what other segments are supported.
    Also, I do not know whether to post this question on this forum or not.

    Thank you.

  2. #2
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: Segments in Visual C++ Compiler

    It's not VC++ who supports the segments, it's the format of executable (called as Portable Executables). VC++ just creates the output according to the specifications given (the code,a nd other pragmas and stuff).

    If you are using DDK then I dont think you have to worry about the segments etc. There are samples which can start using as a base for your driver code.
    Regards,
    Ramkrishna Pawar

  3. #3
    Join Date
    Nov 2002
    Location
    California
    Posts
    4,556

    Re: Segments in Visual C++ Compiler

    Yes, it's the linker that creates segments, not the compiler. Look at the linker switches.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured