Visual Studio (again)

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
Post Reply
User avatar
zlixine
Posts: 23
Joined: Wed Mar 11, 2015 8:13 pm

Visual Studio (again)

Post by zlixine »

Before you tell me I must search before asking questions and view beginner mistakes and give me links to these:
http://wiki.osdev.org/Visual_Studio
http://wiki.osdev.org/Visual_C%2B%2B_Runtime
I already did it.

These pages seem incomplete-ish or ambiguous-ish
While the tutorials on making OS with gcc is VERY VERY complete and 100% crystal clear
why in VS tutorials they say "Some basic definitions:" and "Multiboot" they just view the code while in the bare bones or meaty skeleton tuts (Which assumes you use GCC) has a very easy explaining way.
can some one improve them?
Developing ZeroX Operating System;
I code C++ so much that I am ending English Statements & Replies with semi-colon instead of dot;
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: Visual Studio (again)

Post by neon »

Hello,

The multiboot section appears to be based on my thread here. The basic setup is to use the msvc segment naming convention to define a section and merge it into the beginning part of the .text segment so its both paged aligned and within the first 8k of the resulting image. The example under Some basic definitions is odd. It appears to work around the msvc symbolic naming system for c++ -- but all you need to do is build it as c rather then c++ to get the same effect.

Any case, I don't really edit the Wiki on this site but can certainly help with msvc if you have any questions on anything.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
tsdnz
Member
Member
Posts: 333
Joined: Sun Jun 16, 2013 4:09 am

Re: Visual Studio (again)

Post by tsdnz »

Hi, I have my dev set up using VS c++ as my IDE, and gcc as the compiler.
Is this what you would like to do?
Post Reply