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.
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.
Re: Segments in Visual C++ Compiler
Yes, it's the linker that creates segments, not the compiler. Look at the linker switches.