Page 1 of 1

cross-compiler question

Posted: Sun Jan 10, 2010 5:54 am
by overburn
is it possible to use the visual c++ compiler as a cross compiler?

Re: cross-compiler question

Posted: Sun Jan 10, 2010 5:59 am
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.

Re: cross-compiler question

Posted: Sun Jan 10, 2010 9:26 am
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.

Re: cross-compiler question

Posted: Sun Jan 10, 2010 11:28 am
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.