cross-compiler question

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
overburn
Member
Member
Posts: 50
Joined: Sun Feb 22, 2009 9:15 am

cross-compiler question

Post by overburn »

is it possible to use the visual c++ compiler as a cross compiler?
One Tequila, Two Tequila, Three Tequila, Floor!
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: cross-compiler question

Post by Combuster »

Yes you can, but it's not recommended.

If it's only the IDE you want, you can use gcc with visual studio.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Grunt
Member
Member
Posts: 37
Joined: Fri Nov 06, 2009 1:05 am

Re: cross-compiler question

Post by Grunt »

If you really want to go that way, you can take a look at Mike's tutorial, here.

But I wouldn't recommend it either, I'm using the IDE with a GCC cross-compiler.

EDIT: There's also a wiki article.
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: cross-compiler question

Post by neon »

Hello,

MSVC++ is fine to use, however there are two things to be aware of: i) If you are new to OS development, GCC is most commonly used and thus you may be able to get more help with it; and ii) Its not possible to port MSVC++ to your OS for a self-hosting environment. You will either need to rebuild your OS in an open-source compiler, or create your own compiler.

If you design your OS with portability in mind (ii) might be easy to port your OS. However (i) will still apply.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
Post Reply