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?
Visual Studio (again)
Visual Studio (again)
Developing ZeroX Operating System;
I code C++ so much that I am ending English Statements & Replies with semi-colon instead of dot;
I code C++ so much that I am ending English Statements & Replies with semi-colon instead of dot;
Re: Visual Studio (again)
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.
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();}
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
Re: Visual Studio (again)
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?
Is this what you would like to do?