建立一个Linux内核与Visual Studio 2010 [英] Building a Linux Kernel with Visual Studio 2010

查看:552
本文介绍了建立一个Linux内核与Visual Studio 2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人对如何使用建立一个Linux内核一步一步的指示Visual Studio 2010的?

Does anyone have step-by-step instructions on how to build a Linux kernel using Visual Studio 2010?

我试图寻找解决方案,直接这个问题,但没有喜悦。有几件事情我已经能够找出:

I've tried to search for the solution to this question directly, but no joy. A few things I have been able to find out:


  1. Linux内核使用GNU C编译器内置,所以prerequisite将构建Windows GNU C编译器,以编译Linux的GNU C编译器。我意识到了GNU C编译器源$ C ​​$ C可从GNU.org,但有没有人使用微软的Visual Studio实际上是建立GNU C编译器的Windows 2010的C / C ++编译器?

  1. The Linux kernel is built using the GNU C compiler, so a prerequisite would be to build a Windows GNU C compiler, in order to compile a Linux GNU C compiler. I realize the GNU C compiler source code is available from GNU.org, but has anyone actually built the GNU C compiler for Windows using the Microsoft Visual Studio 2010 C/C++ compiler?

在Linux的GNU C编译器制成,我可以用它来构建Linux内核,以获得一个Linux系统并准备所需的任何其他基于Linux的软件一起。这是我从拿到www.linuxfromscratch.org

Once the Linux GNU C compiler is made, I can use it to build the Linux kernel, along with any other Linux-based software needed to get a Linux system up and going. This is what I got from www.linuxfromscratch.org

你们有些人可能会奇怪我为什么不干脆下载pre-编译GNU C编译器呢?我工作的环境是完全从任何外部网络分开。即使是运动鞋网是不允许的。的软件的每个位将必须从源代码编译,和这些来源将不得不通过手工键入英寸这是低效的,但它也是偏执的安全。 (不要问,我不是老板......)

Some of you may be wondering why I don't simply download a pre-compiled GNU C compiler for this? The environment I'm working in is completely separated from any outside network. Even sneaker-net is not allowed. Every bit of software will have to be compiled from source, and those sources will have to be typed in by hand. It's inefficient, but it's also paranoid-secure. (Don't ask, I'm not the boss...)

总之,我们正在寻找内部造就了Linux系统,但我们与Windows 7和Visual Studio 2010年开始有人可以请告知我们如何能够把所有那些重新输入源$ C ​​$ C成工作GNU C编译器的Windows?同时也为Linux?

Anyway, we're looking at bringing up in-house Linux boxes, but we're starting with Windows 7 and Visual Studio 2010. Can someone please advise how we can turn all that re-typed source code into a working GNU C compiler for Windows? And also for Linux?

感谢您的任何意见!

推荐答案

我认为肯·汤普逊的的反思在信任信托解释,非常善于徒劳的,没有满足这种想法。

I think that Ken Thompson's "Reflections on Trusting Trust" explains very well how futile and not paranoid enough is this idea.

您不能相信
  code,你没有完全建立
  你自己。 (特别是$从C $ C
  雇用的人喜欢我的公司。)
  源代码级验证再多
  或审查会保护你
  使用不可信code。

You can't trust code that you did not totally create yourself. (Especially code from companies that employ people like me.) No amount of source-level verification or scrutiny will protect you from using untrusted code.

你怎么知道你要来构建GCC编译器是安全的,如果你没有自己从源代码编译它?而你使用的编译器?

How do you know that the compiler you are going to use to build GCC is secure if you didn't compile it yourself from source? And the compiler you used for that?

您需要手动键入的的code的编译器来引导你100%安全的环境。只有这样,你信任编译源$ C ​​$ C,无论你输入它用手工或没有。

You need to type in by hand the machine code for a compiler to bootstrap your 100% secure environment. Only then can you trust compiled source code, whether you typed it in by hand or not.

这篇关于建立一个Linux内核与Visual Studio 2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆