OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 23, 2024 1:22 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Visual Studio (again)
PostPosted: Fri Feb 12, 2016 7:08 pm 
Offline
User avatar

Joined: Wed Mar 11, 2015 8:13 pm
Posts: 23
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;


Top
 Profile  
 
 Post subject: Re: Visual Studio (again)
PostPosted: Fri Feb 12, 2016 7:24 pm 
Offline
Member
Member
User avatar

Joined: Sun Feb 18, 2007 7:28 pm
Posts: 1564
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();}


Top
 Profile  
 
 Post subject: Re: Visual Studio (again)
PostPosted: Fri Feb 12, 2016 10:50 pm 
Offline
Member
Member

Joined: Sun Jun 16, 2013 4:09 am
Posts: 333
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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 53 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group