Visual Studio: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
mNo edit summary
Line 5:
See also [http://ksrenevasan.blogspot.com/2005/10/writing-multiboot-pe-kernels-using.html Kaushik Srenevasan's blog] to see how you can "[Write] multiboot PE kernels using Visual C++". This is supplemented with [http://ksrenevasan.blogspot.com/2005/10/writing-multiboot-pe-kernels-using_03.html part 2] which explains some of the things not covered in the first part.
 
MinGW32's objcopy should do the job (parametarsparameters go something like this: -x -g -X -S -Obinary kernel.bin). But you don't have to strip any information from PE file, the other option is to set section aligmentalignment in memory to 0x200 which is generally equal to the section aligmentalignment on disk and do some math:
<source lang="asm">
mov eax, [es:0x3c] ; PE header pointer in MZ header
Line 175:
to itself and call their entry points.
 
Another option is to use a seperateseparate linker such as [[WLink]] with a linker script such as the one found on the [[Watcom]] page.